From e43dcb9a6b629692c8bffe782eb7c533555762dd Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 5 Nov 2023 06:23:57 -0600 Subject: [PATCH] PlacefileManager::GetActivePlacefiles is no longer used --- .../scwx/qt/manager/placefile_manager.cpp | 18 ------------------ .../scwx/qt/manager/placefile_manager.hpp | 7 ------- 2 files changed, 25 deletions(-) diff --git a/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp b/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp index c069d16c..60b4047f 100644 --- a/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp +++ b/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp @@ -436,24 +436,6 @@ void PlacefileManager::SetRadarSite( } } -std::vector> -PlacefileManager::GetActivePlacefiles() -{ - std::vector> 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, diff --git a/scwx-qt/source/scwx/qt/manager/placefile_manager.hpp b/scwx-qt/source/scwx/qt/manager/placefile_manager.hpp index 7010ca94..235b6e65 100644 --- a/scwx-qt/source/scwx/qt/manager/placefile_manager.hpp +++ b/scwx-qt/source/scwx/qt/manager/placefile_manager.hpp @@ -35,13 +35,6 @@ class PlacefileManager : public QObject void SetRadarSite(std::shared_ptr radarSite); - /** - * @brief Gets a list of active placefiles - * - * @return Vector of placefile pointers - */ - std::vector> GetActivePlacefiles(); - void AddUrl(const std::string& urlString, const std::string& title = {}, bool enabled = false,