[new downloader] Removed unused function

This commit is contained in:
Constantin Shalnev 2016-02-17 13:32:42 +03:00 committed by Sergey Yershov
parent ff9e983db1
commit fa296427db
2 changed files with 0 additions and 17 deletions

View file

@ -261,21 +261,6 @@ Country const & Storage::CountryByCountryId(TCountryId const & countryId) const
return node->Value();
}
void Storage::GetGroupAndCountry(TCountryId const & countryId, string & group, string & country) const
{
// @TODO(bykoianko) This method can work faster and more correctly.
// 1. To get id for filling group parameter it's better to use take the parent
// of countryId parameter in m_countries tree. Just fill group
// with its parent name if valid.
// 2. Use countryId as id for filling country parameter.
// 3. To translate the ids got in (1) and (2) into strings for filling group and country
// use platform/get_text_by_id subsystem based on twine.
string fName = CountryLeafByCountryId(countryId).GetFile().GetName();
CountryInfo::FileName2FullName(fName);
CountryInfo::FullName2GroupAndMap(fName, group, country);
}
size_t Storage::CountriesCount(TCountryId const & countryId) const
{
return LeafNodeFromCountryId(m_countries, countryId).ChildrenCount();

View file

@ -376,8 +376,6 @@ public:
TCountryId FindCountryIdByFile(string const & name) const;
void GetGroupAndCountry(TCountryId const & countryId, string & group, string & country) const;
size_t CountriesCount(TCountryId const & countryId) const;
string const & CountryName(TCountryId const & countryId) const;
bool IsCoutryIdInCountryTree(TCountryId const & countryId) const;