mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refactor: Remove unused method
This commit is contained in:
@@ -58,12 +58,6 @@ namespace BlackCore::Vatsim
|
||||
return m_metars.getMetarForAirport(icao);
|
||||
}
|
||||
|
||||
int CVatsimMetarReader::getMetarsCount() const
|
||||
{
|
||||
QReadLocker l(&m_lock);
|
||||
return m_metars.size();
|
||||
}
|
||||
|
||||
void CVatsimMetarReader::doWorkImpl()
|
||||
{
|
||||
this->read();
|
||||
|
||||
@@ -43,10 +43,6 @@ namespace BlackCore::Vatsim
|
||||
//! \threadsafe
|
||||
virtual BlackMisc::Weather::CMetar getMetarForAirport(const BlackMisc::Aviation::CAirportIcaoCode &icao) const;
|
||||
|
||||
//! Get METARs count
|
||||
//! \threadsafe
|
||||
virtual int getMetarsCount() const;
|
||||
|
||||
signals:
|
||||
//! METARs have been read and converted to BlackMisc::Weather::CMetarList
|
||||
void metarsRead(const BlackMisc::Weather::CMetarList &metars);
|
||||
|
||||
@@ -874,12 +874,6 @@ namespace BlackCore
|
||||
return CMetar();
|
||||
}
|
||||
|
||||
int CWebDataServices::getMetarsCount() const
|
||||
{
|
||||
if (m_vatsimMetarReader) { return m_vatsimMetarReader->getMetarsCount(); }
|
||||
return 0;
|
||||
}
|
||||
|
||||
CStatusMessageList CWebDataServices::validateForPublishing(const CAircraftModelList &modelsToBePublished, bool ignoreEqual, CAircraftModelList &validModels, CAircraftModelList &invalidModels) const
|
||||
{
|
||||
CStatusMessageList msgs(modelsToBePublished.validateForPublishing(validModels, invalidModels)); // technical validation
|
||||
|
||||
@@ -374,10 +374,6 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Weather::CMetar getMetarForAirport(const BlackMisc::Aviation::CAirportIcaoCode &icao) const;
|
||||
|
||||
//! Get METARs count
|
||||
//! \threadsafe
|
||||
int getMetarsCount() const;
|
||||
|
||||
//! Validate for publishing
|
||||
//! \remark More detailed check than BlackMisc::Simulation::CAircraftModelList::validateForPublishing
|
||||
BlackMisc::CStatusMessageList validateForPublishing(
|
||||
|
||||
Reference in New Issue
Block a user