QLocalePrivate: remove unused dataPointerForIndex function
Change-Id: I0cd3f8a526e11c3df53fe0cbb063e01c5a3564f9 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>bb10
parent
96e080f81a
commit
bf2a0c795e
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue