Skip to content

Commit

Permalink
PlacefileManager::GetActivePlacefiles is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Nov 5, 2023
1 parent 92f2452 commit e43dcb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
18 changes: 0 additions & 18 deletions scwx-qt/source/scwx/qt/manager/placefile_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
const std::string& title,
bool enabled,
Expand Down
7 changes: 0 additions & 7 deletions scwx-qt/source/scwx/qt/manager/placefile_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ class PlacefileManager : public QObject

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,
const std::string& title = {},
bool enabled = false,
Expand Down

0 comments on commit e43dcb9

Please sign in to comment.