summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2020-12-11 17:41:32 +0100
committerKai Köhne <kai.koehne@qt.io>2021-01-06 16:17:47 +0100
commit05ec5a47abcde1e2134449d21b869fd9d6b8fc37 (patch)
tree84530c24aa9fdc41c376211b08ef1d749cefc834 /src/corelib/text/qlocale.cpp
parent7114b6d23cb25f686defc9a5c4d3ac3a2007b290 (diff)
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>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index ab542f638a..aabdb3b213 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -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;