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/interval_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/interval_index.hpp')
-rw-r--r-- | indexer/interval_index.hpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/indexer/interval_index.hpp b/indexer/interval_index.hpp index 312cb095a4..61d7b330bb 100644 --- a/indexer/interval_index.hpp +++ b/indexer/interval_index.hpp @@ -45,13 +45,6 @@ class IntervalIndex : public IntervalIndexBase { typedef IntervalIndexBase base_t; public: - class Query : public base_t::QueryIFace - { - public: - void Clear() {} - private: - // TODO: Add IntervalIndex cache here. - }; explicit IntervalIndex(ReaderT const & reader) : m_Reader(reader) { @@ -69,7 +62,7 @@ public: } template <typename F> - void ForEach(F const & f, uint64_t beg, uint64_t end, Query &) const + void ForEach(F const & f, uint64_t beg, uint64_t end) const { if (m_Header.m_Levels != 0 && beg != end) { @@ -81,14 +74,7 @@ public: } } - template <typename F> - void ForEach(F const & f, uint64_t beg, uint64_t end) const - { - Query query; - ForEach(f, beg, end, query); - } - - virtual void DoForEach(FunctionT const & f, uint64_t beg, uint64_t end, QueryIFace & /*query*/) + virtual void DoForEach(FunctionT const & f, uint64_t beg, uint64_t end) { ForEach(f, beg, end); } |