refs #417 Remove ISimulator::asyncConnectTo() for x-plane

This commit is contained in:
Michał Garapich
2015-05-24 11:28:46 +02:00
committed by Michal Garapich
parent e3bb701d7b
commit 23761fad13
4 changed files with 1 additions and 15 deletions

View File

@@ -423,8 +423,7 @@ namespace BlackCore
settingsChanged(static_cast<uint>(IContextSettings::SettingsSimulator));
// try to connect
//! \todo #417: we want to change this to connectTo, as the listener already checks the avialability of the simulator
m_simulatorPlugin->simulator->asyncConnectTo();
m_simulatorPlugin->simulator->connectTo();
if (m_simulatorPlugin) // can be already nullptr if connectTo() is synchronous and fails
{

View File

@@ -74,10 +74,6 @@ namespace BlackCore
//! Connect to simulator
virtual bool connectTo() = 0;
//! Connect asynchronously to simulator
//! \deprecated #417
virtual void asyncConnectTo() = 0;
//! Disconnect from simulator
virtual bool disconnectFrom() = 0;

View File

@@ -185,12 +185,6 @@ namespace BlackSimPlugin
}
}
void CSimulatorXPlane::asyncConnectTo()
{
// TODO
connectTo();
}
bool CSimulatorXPlane::disconnectFrom()
{
if (!this->isConnected()) { return true; } // avoid emit if already disconnected

View File

@@ -48,9 +48,6 @@ namespace BlackSimPlugin
//! \copydoc BlackCore::ISimulator::connectTo
virtual bool connectTo() override;
//! \copydoc BlackCore::ISimulator::asyncConnectTo
virtual void asyncConnectTo() override;
//! \copydoc BlackCore::ISimulator::disconnectFrom
virtual bool disconnectFrom() override;