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