summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qtextcodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/codecs/qtextcodec.cpp')
-rw-r--r--src/corelib/codecs/qtextcodec.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp
index 985f5153ea..00a6a9fc9f 100644
--- a/src/corelib/codecs/qtextcodec.cpp
+++ b/src/corelib/codecs/qtextcodec.cpp
@@ -1427,48 +1427,6 @@ bool QTextCodec::canEncode(const QString& s) const
return (state.invalidChars == 0);
}
-#ifdef QT3_SUPPORT
-/*!
- Returns a string representing the current language and
- sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil.
-
- \sa QLocale
-*/
-const char *QTextCodec::locale()
-{
- static char locale[6];
- QByteArray l = QLocale::system().name().toLatin1();
- int len = qMin(l.length(), 5);
- memcpy(locale, l.constData(), len);
- locale[len] = '\0';
-
- return locale;
-}
-
-/*!
- \overload
-*/
-
-QByteArray QTextCodec::fromUnicode(const QString& uc, int& lenInOut) const
-{
- QByteArray result = convertFromUnicode(uc.constData(), lenInOut, 0);
- lenInOut = result.length();
- return result;
-}
-
-/*!
- \overload
-
- \a a contains the source characters; \a len contains the number of
- characters in \a a to use.
-*/
-QString QTextCodec::toUnicode(const QByteArray& a, int len) const
-{
- len = qMin(a.size(), len);
- return convertToUnicode(a.constData(), len, 0);
-}
-#endif
-
/*!
\overload