diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-05-04 11:24:41 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-05-18 20:57:25 +0200 |
commit | 07ed2b054a656963edc40b8228f9eb8fbe0f3b2d (patch) | |
tree | e5c8c9cebbd8142bf7e9e2663ba4ce7f86c8cbcf /util/locale_database | |
parent | 92185d417de43237ae62eae55599c65922cd9a15 (diff) |
Remove unused functions from enumdata.py
It's now a data-only module. The callers of its code-to-ID functions
have, for some time now, been rearranging its mappings to get at data
efficiently.
Change-Id: Ia16dcaa767203cdf3b81a96bd51793491ad41563
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'util/locale_database')
-rw-r--r-- | util/locale_database/enumdata.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/util/locale_database/enumdata.py b/util/locale_database/enumdata.py index 4181e290ac..70589cfcf4 100644 --- a/util/locale_database/enumdata.py +++ b/util/locale_database/enumdata.py @@ -863,27 +863,3 @@ script_aliases = { 'MendeKikakuiScript': 'MendeScript', 'BengaliScript': 'BanglaScript', } - -def countryCodeToId(code): - if not code: - return 0 - for country_id in country_list: - if country_list[country_id][1] == code: - return country_id - return -1 - -def languageCodeToId(code): - if not code: - return 0 - for language_id in language_list: - if language_list[language_id][1] == code: - return language_id - return -1 - -def scriptCodeToId(code): - if not code: - return 0 - for script_id in script_list: - if script_list[script_id][1] == code: - return script_id - return -1 |