Revert "[search] Limit geocoder by max num of results."

This commit is contained in:
ygorshenin 2016-05-20 17:21:12 +03:00
parent 608b012c24
commit e4ca1d93de

View file

@ -842,7 +842,7 @@ void Geocoder::FillVillageLocalities()
template <typename TFn>
void Geocoder::ForEachCountry(vector<shared_ptr<MwmInfo>> const & infos, TFn && fn)
{
for (size_t i = 0; i < infos.size() && m_results->size() < m_params.m_maxNumResults; ++i)
for (size_t i = 0; i < infos.size(); ++i)
{
auto const & info = infos[i];
if (info->GetType() != MwmInfo::COUNTRY && info->GetType() != MwmInfo::WORLD)