diff --git a/src/corelib/kernel/qcoreapplication.h b/src/corelib/kernel/qcoreapplication.h index 2c942f9037..47be74c0a6 100644 --- a/src/corelib/kernel/qcoreapplication.h +++ b/src/corelib/kernel/qcoreapplication.h @@ -213,19 +213,6 @@ inline bool QCoreApplication::sendSpontaneousEvent(QObject *receiver, QEvent *ev { if (event) event->spont = true; return self ? self->notifyInternal(receiver, event) : false; } #ifdef QT_NO_TRANSLATION -// Simple versions -inline QString QCoreApplication::translate(const char *, const char *sourceText, - const char *, Encoding encoding) -{ -#ifndef QT_NO_TEXTCODEC - if (encoding == UnicodeUTF8) - return QString::fromUtf8(sourceText); -#else - Q_UNUSED(encoding) -#endif - return QString::fromLatin1(sourceText); -} - // Simple versions inline QString QCoreApplication::translate(const char *, const char *sourceText, const char *, Encoding encoding, int)