mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
refactor: Remove unused functions
This commit is contained in:
@@ -78,11 +78,6 @@ namespace BlackCore::Vatsim
|
||||
return this->getAtcStations().findByCallsigns(callsigns);
|
||||
}
|
||||
|
||||
CServerList CVatsimDataFileReader::getVoiceServers() const
|
||||
{
|
||||
return {}; // TODO: Method not used anymore with AFV.
|
||||
}
|
||||
|
||||
CUserList CVatsimDataFileReader::getPilotsForCallsigns(const CCallsignSet &callsigns) const
|
||||
{
|
||||
return this->getAircraft().findByCallsigns(callsigns).transform(Predicates::MemberTransform(&CSimulatedAircraft::getPilot));
|
||||
|
||||
@@ -60,10 +60,6 @@ namespace BlackCore::Vatsim
|
||||
//! \threadsafe
|
||||
BlackMisc::Aviation::CAtcStationList getAtcStationsForCallsigns(const BlackMisc::Aviation::CCallsignSet &callsigns) const;
|
||||
|
||||
//! Get all voice servers
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CServerList getVoiceServers() const;
|
||||
|
||||
//! Users for callsign(s)
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CUserList getUsersForCallsigns(const BlackMisc::Aviation::CCallsignSet &callsigns) const;
|
||||
|
||||
@@ -258,20 +258,6 @@ namespace BlackMisc::Aviation
|
||||
return m_takeoffTimeActual.toString("hh:mm");
|
||||
}
|
||||
|
||||
CFlightPlan::FlightRules CFlightPlan::getFlightRulesAsVFRorIFR() const
|
||||
{
|
||||
switch (this->getFlightRules())
|
||||
{
|
||||
case IFR: return IFR;
|
||||
case VFR:
|
||||
case SVFR:
|
||||
case DVFR: return VFR;
|
||||
case UNKNOWN:
|
||||
default: break;
|
||||
}
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
QVariant CFlightPlan::propertyByIndex(CPropertyIndexRef index) const
|
||||
{
|
||||
if (index.isMyself()) { return QVariant::fromValue(*this); }
|
||||
|
||||
@@ -330,9 +330,6 @@ namespace BlackMisc::Aviation
|
||||
//! Get flight rules as in FlightRules
|
||||
FlightRules getFlightRules() const { return m_flightRules; }
|
||||
|
||||
//! Rules only as IFR or VFR
|
||||
FlightRules getFlightRulesAsVFRorIFR() const;
|
||||
|
||||
//! Get flight rules as in FlightRules as string
|
||||
QString getFlightRulesAsString() const { return CFlightPlan::flightRulesToString(this->getFlightRules()); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user