diff --git a/search/feature_offset_match.hpp b/search/feature_offset_match.hpp index d44e868eab..cbac86c0de 100644 --- a/search/feature_offset_match.hpp +++ b/search/feature_offset_match.hpp @@ -156,8 +156,7 @@ void MatchFeaturesInTrie(vector > const & tokens, strings::UniChar const * commonPrefix, size_t commonPrefixSize, FilterT const & filter, - ToDo & toDo, - size_t resultsNeeded) + ToDo & toDo) { impl::OffsetIntersecter intersecter(filter); diff --git a/search/search_query.cpp b/search/search_query.cpp index 202948dbf4..4d69173105 100644 --- a/search/search_query.cpp +++ b/search/search_query.cpp @@ -542,8 +542,7 @@ void Query::SearchFeatures(vector > const & tokens, MatchFeaturesInTrie(tokens, m_prefix, *pLangRoot, edge.size() == 1 ? NULL : &edge[1], edge.size() - 1, - FeaturesFilter(m_offsetsInViewport[mwmId], isWorld), emitter, - m_results[0].max_size() * 10); + FeaturesFilter(m_offsetsInViewport[mwmId], isWorld), emitter); LOG(LDEBUG, ("Lang:", StringUtf8Multilang::GetLangByCode(static_cast(edge[0])),