mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user