mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
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:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user