Fix QtCore compilation for -qconfig large

Q_UNUSED(encoding) line removed because the variable is not declared.
translate() removed because the function is previously implemented.

Change-Id: I24da0105d72635ea19b26439776416655f3213df
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
bb10
Tasuku Suzuki 2012-05-20 21:38:16 +09:00 committed by Qt by Nokia
parent b8420c9fc2
commit 4830bcc962
1 changed files with 0 additions and 8 deletions

View File

@ -216,16 +216,8 @@ inline bool QCoreApplication::sendSpontaneousEvent(QObject *receiver, QEvent *ev
#ifdef QT_NO_TRANSLATION
inline QString QCoreApplication::translate(const char *, const char *sourceText, const char *, int)
{
Q_UNUSED(encoding)
return QString::fromUtf8(sourceText);
}
#if QT_DEPRECATED_SINCE(5, 0)
QT_DEPRECATED inline QString QCoreApplication::translate(const char *, const char *sourceText, const char *, Encoding encoding, int)
{
Q_UNUSED(encoding)
return QString::fromUtf8(sourceText);
}
#endif
#endif
#define Q_DECLARE_TR_FUNCTIONS(context) \