From b99acb467bca359f2a1034bee097e2742e62f78c Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Mon, 12 Apr 2021 23:44:07 +0200 Subject: [PATCH] Removed unnecessary SetLocale calls There were 3 calls to SetLocale internally, 2 are removed. the last one left which is called when SearchEngine is created. Signed-off-by: Alexander Borsuk --- search/processor.cpp | 2 -- search/ranker.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/search/processor.cpp b/search/processor.cpp index 8e493e1315..2b454ceec3 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -206,8 +206,6 @@ Processor::Processor(DataSource const & dataSource, CategoriesHolder const & cat LanguageTier::LANGUAGE_TIER_ALT_AND_OLD, {StringUtf8Multilang::kAltNameCode, StringUtf8Multilang::kOldNameCode}); - SetPreferredLocale("en"); - for (auto const & country : m_infoGetter.GetCountries()) m_countriesTrie.Add(country.m_countryId, true); } diff --git a/search/ranker.cpp b/search/ranker.cpp index 06cd9a4bd7..bbbd187113 100644 --- a/search/ranker.cpp +++ b/search/ranker.cpp @@ -601,7 +601,6 @@ Ranker::Ranker(DataSource const & dataSource, CitiesBoundariesTable const & boun , m_categories(categories) , m_suggests(suggests) { - SetLocale("default"); } void Ranker::Init(Params const & params, Geocoder::Params const & geocoderParams)