diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-04-29 23:29:43 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-08 06:05:40 +0200 |
commit | bf2a0c795ed3a9c14e6cbbabc4456f3e9ebf7d6d (patch) | |
tree | 4597720cd297d33cdf2880f927dd74a728e9a3f4 /src | |
parent | 96e080f81a5e61384148f860efe6a09df5dd306a (diff) |
QLocalePrivate: remove unused dataPointerForIndex function
Change-Id: I0cd3f8a526e11c3df53fe0cbb063e01c5a3564f9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qlocale.cpp | 13 | ||||
-rw-r--r-- | src/corelib/tools/qlocale_p.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp index 991cc9e170..ede783bf9e 100644 --- a/src/corelib/tools/qlocale.cpp +++ b/src/corelib/tools/qlocale.cpp @@ -695,19 +695,6 @@ QDataStream &operator>>(QDataStream &ds, QLocale &l) static const int locale_data_size = sizeof(locale_data)/sizeof(QLocaleData) - 1; -const QLocaleData *QLocalePrivate::dataPointerForIndex(quint16 index) -{ -#ifndef QT_NO_SYSTEMLOCALE - Q_ASSERT(index <= locale_data_size); - if (index == locale_data_size) - return system_data; -#else - Q_ASSERT(index < locale_data_size); -#endif - - return &locale_data[index]; -} - Q_GLOBAL_STATIC_WITH_ARGS(QSharedDataPointer<QLocalePrivate>, defaultLocalePrivate, (QLocalePrivate::create(defaultData(), default_number_options))) diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h index a62ee9304b..cbb07331ab 100644 --- a/src/corelib/tools/qlocale_p.h +++ b/src/corelib/tools/qlocale_p.h @@ -247,7 +247,6 @@ public: static QLocale::Country codeToCountry(const QString &code); static void getLangAndCountry(const QString &name, QLocale::Language &lang, QLocale::Script &script, QLocale::Country &cntry); - static const QLocaleData *dataPointerForIndex(quint16 index); QLocale::MeasurementSystem measurementSystem() const; |