refactor: Remove unused method

This commit is contained in:
Lars Toenning
2024-03-11 19:11:56 +01:00
parent 3f825b7111
commit 186af2777c
4 changed files with 0 additions and 20 deletions

View File

@@ -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();

View File

@@ -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);

View File

@@ -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

View File

@@ -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(