Remove unused static functions from qlogging.cpp, qstring.cpp.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 12 Jun 2012 07:11:19 +0000 (09:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 15:40:02 +0000 (17:40 +0200)
Change-Id: I4e9642b5e7fb57ac56511ae06af6ce416d0401ec
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qlogging.cpp
src/corelib/tools/qstring.cpp

index 31783ee..b0afc5a 100644 (file)
@@ -644,15 +644,6 @@ static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &con
 /*!
     \internal
 */
-static void qDefaultMessageHandler2(QtMsgType type, const QMessageLogContext &context,
-                                   const char *buf)
-{
-    qDefaultMessageHandler(type, context, QString::fromLocal8Bit(buf));
-}
-
-/*!
-    \internal
-*/
 static void qDefaultMsgHandler(QtMsgType type, const char *buf)
 {
     QMessageLogContext emptyContext;
index 493661b..e473cb2 100644 (file)
@@ -3927,7 +3927,7 @@ QByteArray QString::toLatin1() const
     \sa fromAscii(), toLatin1(), toUtf8(), toLocal8Bit(), QTextCodec
 */
 
-#if !defined(Q_OS_MAC) && defined(Q_OS_UNIX)
+#if !defined(Q_OS_MAC) && defined(Q_OS_UNIX) && !defined(QT_USE_ICU)
 static QByteArray toLocal8Bit_helper(const QChar *data, int length)
 {
 #ifndef QT_NO_TEXTCODEC