[traffic] Remove forgotten InitializeDataSources() method

Obsolete since we started using a single data source in 5a031c55

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-05-15 23:57:52 +03:00
parent 3455050876
commit 2ba3030366
2 changed files with 0 additions and 21 deletions

View File

@@ -410,20 +410,6 @@ void TrafficManager::ConsolidateFeedQueue()
++it;
}
void TrafficManager::InitializeDataSources(std::vector<FrozenDataSource> & 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.

View File

@@ -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<FrozenDataSource> &dataSources);
/**
* @brief Removes the first message from the first feed and decodes it.
*/