From 3760502646fc61520bb884fb9eb7bf70746b3a76 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 6 Sep 2020 21:51:56 +0200 Subject: [PATCH] GUI: remove default list of commonly used country codes Countries/regions are used rarely. Such an arbitrary list is not really that useful. Let the user set up their own preferences. --- src/common/iso3166.cpp | 2 -- src/common/iso3166.h | 1 - src/mkvtoolnix-gui/util/settings.cpp | 4 ---- 3 files changed, 7 deletions(-) diff --git a/src/common/iso3166.cpp b/src/common/iso3166.cpp index b0b4d66c2..42812fe5a 100644 --- a/src/common/iso3166.cpp +++ b/src/common/iso3166.cpp @@ -18,8 +18,6 @@ namespace mtx::iso3166 { -std::vector const g_popular_country_codes{ "CN", "DE", "ES", "FI", "FR", "IT", "JP", "NL", "NO", "PT", "RU", "SE", "GB", "US" }; - namespace { std::vector const s_cctlds_only{ diff --git a/src/common/iso3166.h b/src/common/iso3166.h index 40dad7aae..54124c0a9 100644 --- a/src/common/iso3166.h +++ b/src/common/iso3166.h @@ -24,7 +24,6 @@ struct region_t { }; extern std::vector const g_regions; -extern std::vector const g_popular_country_codes; std::optional look_up(std::string const &s); std::optional look_up(unsigned int number); diff --git a/src/mkvtoolnix-gui/util/settings.cpp b/src/mkvtoolnix-gui/util/settings.cpp index 345edd01b..f2862c0fb 100644 --- a/src/mkvtoolnix-gui/util/settings.cpp +++ b/src/mkvtoolnix-gui/util/settings.cpp @@ -436,10 +436,6 @@ Settings::setDefaults(std::optional enableMuxingTracksByTheseTypes) { m_oftenUsedLanguages.sort(); } - if (m_oftenUsedCountries.isEmpty()) - for (auto const &countryCode : mtx::iso3166::g_popular_country_codes) - m_oftenUsedCountries << Q(countryCode).toLower(); - if (m_oftenUsedCharacterSets.isEmpty()) for (auto const &characterSet : g_popular_character_sets) m_oftenUsedCharacterSets << Q(characterSet);