mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
PlacefileManager::GetActivePlacefiles is no longer used
This commit is contained in:
parent
92f24528b7
commit
e43dcb9a6b
2 changed files with 0 additions and 25 deletions
|
|
@ -436,24 +436,6 @@ void PlacefileManager::SetRadarSite(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::shared_ptr<gr::Placefile>>
|
|
||||||
PlacefileManager::GetActivePlacefiles()
|
|
||||||
{
|
|
||||||
std::vector<std::shared_ptr<gr::Placefile>> placefiles;
|
|
||||||
|
|
||||||
std::shared_lock lock {p->placefileRecordLock_};
|
|
||||||
|
|
||||||
for (const auto& record : p->placefileRecords_)
|
|
||||||
{
|
|
||||||
if (record->enabled_ && record->placefile_ != nullptr)
|
|
||||||
{
|
|
||||||
placefiles.push_back(record->placefile_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return placefiles;
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlacefileManager::AddUrl(const std::string& urlString,
|
void PlacefileManager::AddUrl(const std::string& urlString,
|
||||||
const std::string& title,
|
const std::string& title,
|
||||||
bool enabled,
|
bool enabled,
|
||||||
|
|
|
||||||
|
|
@ -35,13 +35,6 @@ public:
|
||||||
|
|
||||||
void SetRadarSite(std::shared_ptr<config::RadarSite> radarSite);
|
void SetRadarSite(std::shared_ptr<config::RadarSite> radarSite);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Gets a list of active placefiles
|
|
||||||
*
|
|
||||||
* @return Vector of placefile pointers
|
|
||||||
*/
|
|
||||||
std::vector<std::shared_ptr<gr::Placefile>> GetActivePlacefiles();
|
|
||||||
|
|
||||||
void AddUrl(const std::string& urlString,
|
void AddUrl(const std::string& urlString,
|
||||||
const std::string& title = {},
|
const std::string& title = {},
|
||||||
bool enabled = false,
|
bool enabled = false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue