Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-02-16 13:12:12 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:21:14 +0300
commit2510d87a99189503d61d8abde2870ef9abe38d1d (patch)
treee323702654c86c26ae59e6e4a8a0e1c4f407940d /indexer/index.hpp
parent700c45f2f26a4dc4cf98d20a0d6b2e0050846bc1 (diff)
[index] Fixed notifications logic, added UPDATE event.
Diffstat (limited to 'indexer/index.hpp')
-rw-r--r--indexer/index.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/indexer/index.hpp b/indexer/index.hpp
index 8694055151..39a38c15d5 100644
--- a/indexer/index.hpp
+++ b/indexer/index.hpp
@@ -14,7 +14,6 @@
#include "defines.hpp"
#include "base/macros.hpp"
-#include "base/observer_list.hpp"
#include "std/algorithm.hpp"
#include "std/limits.hpp"
@@ -52,28 +51,9 @@ protected:
unique_ptr<MwmInfo> CreateInfo(platform::LocalCountryFile const & localFile) const override;
unique_ptr<MwmValueBase> CreateValue(MwmInfo & info) const override;
-
- void OnMwmDeregistered(platform::LocalCountryFile const & localFile) override;
//@}
public:
- /// An Observer interface to MwmSet. Note that these functions can
- /// be called from *ANY* thread because most signals are sent when
- /// some thread releases its MwmHandle, so overrides must be as fast
- /// as possible and non-blocking when it's possible.
- class Observer
- {
- public:
- virtual ~Observer() = default;
-
- /// Called when a map is registered for a first time and can be
- /// used.
- virtual void OnMapRegistered(platform::LocalCountryFile const & localFile) {}
-
- /// Called when a map is deregistered and can not be used.
- virtual void OnMapDeregistered(platform::LocalCountryFile const & localFile) {}
- };
-
/// Registers a new map.
pair<MwmId, RegResult> RegisterMap(platform::LocalCountryFile const & localFile);
@@ -84,10 +64,6 @@ public:
/// now, returns false.
bool DeregisterMap(platform::CountryFile const & countryFile);
- bool AddObserver(Observer & observer);
-
- bool RemoveObserver(Observer const & observer);
-
private:
template <typename F> class ReadMWMFunctor
@@ -370,6 +346,4 @@ private:
editor.ForEachFeatureInMwmRectAndScale(worldID[1], f, rect, scale);
}
}
-
- my::ObserverList<Observer> m_observers;
};