mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T348, style/removed unused function
This commit is contained in:
@@ -314,18 +314,6 @@ namespace BlackSimPlugin
|
||||
return CSimConnectObject();
|
||||
}
|
||||
|
||||
CSimConnectObject CSimConnectObjects::markObjectAsAdded(DWORD objectId)
|
||||
{
|
||||
for (const CCallsign &cs : this->keys())
|
||||
{
|
||||
CSimConnectObject &simObject = (*this)[cs];
|
||||
if (simObject.getObjectId() != objectId) { continue; }
|
||||
simObject.setConfirmedAdded(true);
|
||||
return simObject;
|
||||
}
|
||||
return CSimConnectObject();
|
||||
}
|
||||
|
||||
CSimConnectObject CSimConnectObjects::getOldestObject() const
|
||||
{
|
||||
if (this->isEmpty()) { return CSimConnectObject(); }
|
||||
|
||||
@@ -313,9 +313,6 @@ namespace BlackSimPlugin
|
||||
//! Get by request or object id, just as possible
|
||||
CSimConnectObject getSimObjectForOtherSimObject(const CSimConnectObject &otherSimObj) const;
|
||||
|
||||
//! Mark as added if existing
|
||||
CSimConnectObject markObjectAsAdded(DWORD objectId);
|
||||
|
||||
//! Get the oldest object
|
||||
CSimConnectObject getOldestObject() const;
|
||||
|
||||
|
||||
@@ -93,9 +93,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
const bool removed = simulatorFsxP3D->m_simConnectObjects.remove(simObject.getCallsign());
|
||||
Q_UNUSED(removed);
|
||||
CLogMessage(simulatorFsxP3D).warning("Adding probe failed: %1 %2")
|
||||
<< simObject.getCallsign().asString()
|
||||
<< simObject.getAircraftModelString();
|
||||
CLogMessage(simulatorFsxP3D).warning("Adding probe failed: %1 %2") << simObject.getCallsign().asString() << simObject.getAircraftModelString();
|
||||
simulatorFsxP3D->setUsingFsxTerrainProbe(false);
|
||||
logGenericExceptionInfo = false;
|
||||
} // aircraft
|
||||
|
||||
Reference in New Issue
Block a user