diff options
author | Yury Melnichek <melnichek@malinovka.local> | 2011-08-26 01:10:15 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:22:32 +0300 |
commit | 31f2a764cd99e2e184233b017218bb4064d28751 (patch) | |
tree | 2a54feb81c09cae28f16e79b75c6fc2731e7521a /indexer/scale_index.hpp | |
parent | 940c975a933069485234682335bfcb18ecad8508 (diff) |
Fix bug when some feature were omitted from ForEachInRect. Remove Query class, since it's not used anywhere.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r-- | indexer/scale_index.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp index ecbc4f0df5..826bb22f2d 100644 --- a/indexer/scale_index.hpp +++ b/indexer/scale_index.hpp @@ -62,7 +62,6 @@ class ScaleIndex : public ScaleIndexBase { public: typedef ReaderT ReaderType; - typedef typename IntervalIndexIFace::QueryIFace Query; ScaleIndex() {} explicit ScaleIndex(ReaderT const & reader, IndexFactory & factory) @@ -91,13 +90,12 @@ public: } template <typename F> - void ForEachInIntervalAndScale(F const & f, uint64_t beg, uint64_t end, uint32_t scale, - Query & query) const + void ForEachInIntervalAndScale(F const & f, uint64_t beg, uint64_t end, uint32_t scale) const { size_t const scaleBucket = BucketByScale(scale); if (scaleBucket < m_IndexForScale.size()) for (size_t i = 0; i <= scaleBucket; ++i) - m_IndexForScale[i]->DoForEach(bind<void>(ref(f), _1), beg, end, query); + m_IndexForScale[i]->DoForEach(bind<void>(ref(f), _1), beg, end); } private: |