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