QLocale: Remove dead code
The code using it got removed in qttools commit 01da5d9a Change-Id: I14d36ac939f2647139fcc42591a044a03e707553 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
7114b6d23c
commit
05ec5a47ab
|
|
@ -565,16 +565,6 @@ bool qt_splitLocaleName(QStringView name, QStringView *lang, QStringView *script
|
|||
return state != LangState;
|
||||
}
|
||||
|
||||
// TODO: kill this ! Still in use by qttools, patch submitted (2020 October).
|
||||
void QLocalePrivate::getLangAndCountry(const QString &name, QLocale::Language &lang,
|
||||
QLocale::Script &script, QLocale::Country &land)
|
||||
{
|
||||
const auto id = QLocaleId::fromName(name);
|
||||
lang = QLocale::Language(id.language_id);
|
||||
script = QLocale::Script(id.script_id);
|
||||
land = QLocale::Country(id.country_id);
|
||||
}
|
||||
|
||||
QLocaleId QLocaleId::fromName(const QString &name)
|
||||
{
|
||||
QStringView lang;
|
||||
|
|
|
|||
|
|
@ -418,8 +418,6 @@ public:
|
|||
static QLocale::Language codeToLanguage(QStringView code) noexcept;
|
||||
static QLocale::Script codeToScript(QStringView code) noexcept;
|
||||
static QLocale::Country codeToCountry(QStringView code) noexcept;
|
||||
static void getLangAndCountry(const QString &name, QLocale::Language &lang,
|
||||
QLocale::Script &script, QLocale::Country &cntry);
|
||||
|
||||
QLocale::MeasurementSystem measurementSystem() const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue