diff --git a/map/traffic_manager.cpp b/map/traffic_manager.cpp index d8a016a90..1ac54f318 100644 --- a/map/traffic_manager.cpp +++ b/map/traffic_manager.cpp @@ -410,20 +410,6 @@ void TrafficManager::ConsolidateFeedQueue() ++it; } -void TrafficManager::InitializeDataSources(std::vector & dataSources) -{ - /* - * TODO can we include all available MWMs in the list (including non-active ones)? - * Then we could initialize the decoder once and for all. - */ - ForEachActiveMwm([this, &dataSources](MwmSet::MwmId const & mwmId) { - ASSERT(mwmId.IsAlive(), ()); - // TODO do we need .SyncWithDisk() for the file? - for (size_t i = 0; i < dataSources.size(); i++) - dataSources[i].RegisterMap(mwmId.GetInfo()->GetLocalFile()); - }); -} - /* * TODO the OpenLR decoder is designed to handle multiple segments (i.e. locations). * Decoding message by message kind of defeats the purpose. diff --git a/map/traffic_manager.hpp b/map/traffic_manager.hpp index 14b882d93..e384dbea4 100644 --- a/map/traffic_manager.hpp +++ b/map/traffic_manager.hpp @@ -246,13 +246,6 @@ private: */ void ConsolidateFeedQueue(); - /** - * @brief Initializes the data sources for an OpenLR decoder. - * - * @param dataSources Receives the data sources for the decoder (one per worker thread). - */ - void InitializeDataSources(std::vector &dataSources); - /** * @brief Removes the first message from the first feed and decodes it. */