From aa3347ae8b73431f1a56a564a0ec195f450806f6 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Thu, 25 Jan 2024 11:34:45 +0100 Subject: [PATCH] refactor: Remove outdated VATSIM datafile URL from cache class The cache is filled at every start with the URLs from the status file. There should be no need to hardcode a URL here. --- src/blackcore/data/vatsimsetup.cpp | 3 +-- src/blackcore/vatsim/vatsimdatafilereader.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/blackcore/data/vatsimsetup.cpp b/src/blackcore/data/vatsimsetup.cpp index 813bef53a..266d53348 100644 --- a/src/blackcore/data/vatsimsetup.cpp +++ b/src/blackcore/data/vatsimsetup.cpp @@ -11,8 +11,7 @@ BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackCore::Data, CVatsimSetup) namespace BlackCore::Data { - CVatsimSetup::CVatsimSetup() : ITimestampBased(0), - m_dataFileUrls(QStringList({ "http://info.vroute.net/vatsim-data.txt" })) + CVatsimSetup::CVatsimSetup() : ITimestampBased(0) {} bool CVatsimSetup::setUrls(const CUrlList &dataFileUrls, const CUrlList &serverFileUrls, const CUrlList &metarFileUrls) diff --git a/src/blackcore/vatsim/vatsimdatafilereader.h b/src/blackcore/vatsim/vatsimdatafilereader.h index ccdd87b0d..be5930a03 100644 --- a/src/blackcore/vatsim/vatsimdatafilereader.h +++ b/src/blackcore/vatsim/vatsimdatafilereader.h @@ -36,7 +36,6 @@ namespace BlackMisc::Simulation namespace BlackCore::Vatsim { //! Read vatsim data file - //! \sa http://info.vroute.net/vatsim-data.txt class BLACKCORE_EXPORT CVatsimDataFileReader : public CThreadedReader, public BlackMisc::Network::CEcosystemAware