From bf2a0c795ed3a9c14e6cbbabc4456f3e9ebf7d6d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 29 Apr 2013 23:29:43 -0700 Subject: QLocalePrivate: remove unused dataPointerForIndex function Change-Id: I0cd3f8a526e11c3df53fe0cbb063e01c5a3564f9 Reviewed-by: Lars Knoll Reviewed-by: Konstantin Ritt --- src/corelib/tools/qlocale.cpp | 13 ------------- src/corelib/tools/qlocale_p.h | 1 - 2 files changed, 14 deletions(-) (limited to 'src') 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, 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; -- cgit v1.2.3