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.
This commit is contained in:
Lars Toenning
2024-01-25 11:34:45 +01:00
parent 9f50aaaa4a
commit aa3347ae8b
2 changed files with 1 additions and 3 deletions

View File

@@ -11,8 +11,7 @@ BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackCore::Data, CVatsimSetup)
namespace BlackCore::Data namespace BlackCore::Data
{ {
CVatsimSetup::CVatsimSetup() : ITimestampBased(0), CVatsimSetup::CVatsimSetup() : ITimestampBased(0)
m_dataFileUrls(QStringList({ "http://info.vroute.net/vatsim-data.txt" }))
{} {}
bool CVatsimSetup::setUrls(const CUrlList &dataFileUrls, const CUrlList &serverFileUrls, const CUrlList &metarFileUrls) bool CVatsimSetup::setUrls(const CUrlList &dataFileUrls, const CUrlList &serverFileUrls, const CUrlList &metarFileUrls)

View File

@@ -36,7 +36,6 @@ namespace BlackMisc::Simulation
namespace BlackCore::Vatsim namespace BlackCore::Vatsim
{ {
//! Read vatsim data file //! Read vatsim data file
//! \sa http://info.vroute.net/vatsim-data.txt
class BLACKCORE_EXPORT CVatsimDataFileReader : class BLACKCORE_EXPORT CVatsimDataFileReader :
public CThreadedReader, public CThreadedReader,
public BlackMisc::Network::CEcosystemAware public BlackMisc::Network::CEcosystemAware