mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
refactor: remove unused method
This commit is contained in:
committed by
Lars Toenning
parent
2add67fe6a
commit
2ed1161508
@@ -99,7 +99,6 @@ namespace swift::simplugin::flightgear
|
|||||||
connect(&m_pendingAddedTimer, &QTimer::timeout, this, &CSimulatorFlightgear::addNextPendingAircraft);
|
connect(&m_pendingAddedTimer, &QTimer::timeout, this, &CSimulatorFlightgear::addNextPendingAircraft);
|
||||||
m_fastTimer.start(100);
|
m_fastTimer.start(100);
|
||||||
m_slowTimer.start(1000);
|
m_slowTimer.start(1000);
|
||||||
m_airportUpdater.start(60 * 1000);
|
|
||||||
m_pendingAddedTimer.start(5000);
|
m_pendingAddedTimer.start(5000);
|
||||||
|
|
||||||
this->setDefaultModel(
|
this->setDefaultModel(
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ namespace swift::simplugin::flightgear
|
|||||||
CFGSwiftBusTrafficProxy *m_trafficProxy { nullptr };
|
CFGSwiftBusTrafficProxy *m_trafficProxy { nullptr };
|
||||||
QTimer m_fastTimer;
|
QTimer m_fastTimer;
|
||||||
QTimer m_slowTimer;
|
QTimer m_slowTimer;
|
||||||
QTimer m_airportUpdater;
|
|
||||||
QTimer m_pendingAddedTimer;
|
QTimer m_pendingAddedTimer;
|
||||||
swift::misc::CData<swift::misc::simulation::data::TModelSetCacheFG> m_modelSet {
|
swift::misc::CData<swift::misc::simulation::data::TModelSetCacheFG> m_modelSet {
|
||||||
this
|
this
|
||||||
|
|||||||
@@ -101,11 +101,9 @@ namespace swift::simplugin::xplane
|
|||||||
m_pendingAddedTimer.setObjectName(this->objectName().append(":m_pendingAddedTimer"));
|
m_pendingAddedTimer.setObjectName(this->objectName().append(":m_pendingAddedTimer"));
|
||||||
connect(&m_fastTimer, &QTimer::timeout, this, &CSimulatorXPlane::fastTimerTimeout);
|
connect(&m_fastTimer, &QTimer::timeout, this, &CSimulatorXPlane::fastTimerTimeout);
|
||||||
connect(&m_slowTimer, &QTimer::timeout, this, &CSimulatorXPlane::slowTimerTimeout);
|
connect(&m_slowTimer, &QTimer::timeout, this, &CSimulatorXPlane::slowTimerTimeout);
|
||||||
connect(&m_airportUpdater, &QTimer::timeout, this, &CSimulatorXPlane::updateAirportsInRange);
|
|
||||||
connect(&m_pendingAddedTimer, &QTimer::timeout, this, &CSimulatorXPlane::addNextPendingAircraft);
|
connect(&m_pendingAddedTimer, &QTimer::timeout, this, &CSimulatorXPlane::addNextPendingAircraft);
|
||||||
m_fastTimer.start(100);
|
m_fastTimer.start(100);
|
||||||
m_slowTimer.start(1000);
|
m_slowTimer.start(1000);
|
||||||
m_airportUpdater.start(60 * 1000);
|
|
||||||
m_pendingAddedTimer.start(5000);
|
m_pendingAddedTimer.start(5000);
|
||||||
|
|
||||||
this->setDefaultModel({ "Jets A320_a A320_a_Austrian_Airlines A320_a_Austrian_Airlines",
|
this->setDefaultModel({ "Jets A320_a A320_a_Austrian_Airlines A320_a_Austrian_Airlines",
|
||||||
@@ -498,7 +496,6 @@ namespace swift::simplugin::xplane
|
|||||||
setSimulatorDetails("X-Plane", {}, xplaneVersion);
|
setSimulatorDetails("X-Plane", {}, xplaneVersion);
|
||||||
connect(m_serviceProxy, &CXSwiftBusServiceProxy::aircraftModelChanged, this,
|
connect(m_serviceProxy, &CXSwiftBusServiceProxy::aircraftModelChanged, this,
|
||||||
&CSimulatorXPlane::emitOwnAircraftModelChanged);
|
&CSimulatorXPlane::emitOwnAircraftModelChanged);
|
||||||
m_serviceProxy->updateAirportsInRange();
|
|
||||||
connect(m_trafficProxy, &CXSwiftBusTrafficProxy::simFrame, this, &CSimulatorXPlane::updateRemoteAircraft);
|
connect(m_trafficProxy, &CXSwiftBusTrafficProxy::simFrame, this, &CSimulatorXPlane::updateRemoteAircraft);
|
||||||
connect(m_trafficProxy, &CXSwiftBusTrafficProxy::remoteAircraftAdded, this,
|
connect(m_trafficProxy, &CXSwiftBusTrafficProxy::remoteAircraftAdded, this,
|
||||||
&CSimulatorXPlane::onRemoteAircraftAdded);
|
&CSimulatorXPlane::onRemoteAircraftAdded);
|
||||||
@@ -1155,12 +1152,6 @@ namespace swift::simplugin::xplane
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSimulatorXPlane::updateAirportsInRange()
|
|
||||||
{
|
|
||||||
if (this->isShuttingDownOrDisconnected()) { return; }
|
|
||||||
m_serviceProxy->updateAirportsInRange();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSimulatorXPlane::onRemoteAircraftAdded(const QString &callsign)
|
void CSimulatorXPlane::onRemoteAircraftAdded(const QString &callsign)
|
||||||
{
|
{
|
||||||
SWIFT_VERIFY_X(!callsign.isEmpty(), Q_FUNC_INFO, "Need callsign");
|
SWIFT_VERIFY_X(!callsign.isEmpty(), Q_FUNC_INFO, "Need callsign");
|
||||||
|
|||||||
@@ -200,9 +200,6 @@ namespace swift::simplugin::xplane
|
|||||||
//! \remark this is where the interpolated data are set
|
//! \remark this is where the interpolated data are set
|
||||||
void updateRemoteAircraft();
|
void updateRemoteAircraft();
|
||||||
|
|
||||||
//! Update airports
|
|
||||||
void updateAirportsInRange();
|
|
||||||
|
|
||||||
//! @{
|
//! @{
|
||||||
//! Request elevation and CG from XPlane
|
//! Request elevation and CG from XPlane
|
||||||
void requestRemoteAircraftDataFromXPlane();
|
void requestRemoteAircraftDataFromXPlane();
|
||||||
@@ -275,7 +272,6 @@ namespace swift::simplugin::xplane
|
|||||||
CXSwiftBusTrafficProxy *m_trafficProxy { nullptr };
|
CXSwiftBusTrafficProxy *m_trafficProxy { nullptr };
|
||||||
QTimer m_fastTimer;
|
QTimer m_fastTimer;
|
||||||
QTimer m_slowTimer;
|
QTimer m_slowTimer;
|
||||||
QTimer m_airportUpdater;
|
|
||||||
QTimer m_pendingAddedTimer;
|
QTimer m_pendingAddedTimer;
|
||||||
unsigned int m_fastTimerCalls = 0; //!< how often called
|
unsigned int m_fastTimerCalls = 0; //!< how often called
|
||||||
unsigned int m_slowTimerCalls = 0; //!< how often called
|
unsigned int m_slowTimerCalls = 0; //!< how often called
|
||||||
|
|||||||
@@ -210,11 +210,6 @@ namespace swift::simplugin::xplane
|
|||||||
m_dbusInterface->callDBus(QLatin1String("addTextMessage"), text, red, green, blue);
|
m_dbusInterface->callDBus(QLatin1String("addTextMessage"), text, red, green, blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CXSwiftBusServiceProxy::updateAirportsInRange()
|
|
||||||
{
|
|
||||||
m_dbusInterface->callDBus(QLatin1String("updateAirportsInRange"));
|
|
||||||
}
|
|
||||||
|
|
||||||
QString CXSwiftBusServiceProxy::getAircraftModelPath() const
|
QString CXSwiftBusServiceProxy::getAircraftModelPath() const
|
||||||
{
|
{
|
||||||
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getAircraftModelPath"));
|
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getAircraftModelPath"));
|
||||||
|
|||||||
@@ -123,9 +123,6 @@ namespace swift::simplugin::xplane
|
|||||||
//! \copydoc XSwiftBus::CService::addTextMessage
|
//! \copydoc XSwiftBus::CService::addTextMessage
|
||||||
void addTextMessage(const QString &text, double red, double green, double blue);
|
void addTextMessage(const QString &text, double red, double green, double blue);
|
||||||
|
|
||||||
//! \copydoc XSwiftBus::CService::updateAirportsInRange
|
|
||||||
void updateAirportsInRange();
|
|
||||||
|
|
||||||
//! @{
|
//! @{
|
||||||
//! \copydoc XSwiftBus::CService::getAircraftModelPath
|
//! \copydoc XSwiftBus::CService::getAircraftModelPath
|
||||||
QString getAircraftModelPath() const;
|
QString getAircraftModelPath() const;
|
||||||
|
|||||||
@@ -66,8 +66,6 @@ R"XML(<node>
|
|||||||
<arg name="path" type="s" direction="out"/>
|
<arg name="path" type="s" direction="out"/>
|
||||||
<arg name="icao" type="s" direction="out"/>
|
<arg name="icao" type="s" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="updateAirportsInRange">
|
|
||||||
</method>
|
|
||||||
<method name="getAircraftModelPath">
|
<method name="getAircraftModelPath">
|
||||||
<arg type="s" direction="out"/>
|
<arg type="s" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
|
|||||||
Reference in New Issue
Block a user