refactor: Remove unused signals

This commit is contained in:
Lars Toenning
2024-12-29 14:41:51 +01:00
parent 52f8dc7b6d
commit f2dd54d77b
5 changed files with 0 additions and 40 deletions

View File

@@ -99,12 +99,6 @@ namespace swift::core::context
//! Aircraft has been moved from one location to another (changed scenery) //! Aircraft has been moved from one location to another (changed scenery)
void movedAircraft(const swift::misc::physical_quantities::CLength &distance); void movedAircraft(const swift::misc::physical_quantities::CLength &distance);
//! Just airborne
void isTakingOff();
//! Just landed
void isTouchingDown();
public slots: public slots:
//! Get own aircraft //! Get own aircraft
virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft() const = 0; virtual swift::misc::simulation::CSimulatedAircraft getOwnAircraft() const = 0;

View File

@@ -196,16 +196,6 @@ namespace swift::core::context
} }
emit this->movedAircraft(distance); emit this->movedAircraft(distance);
} }
else
{
const bool to = situations.isTakingOff(true);
if (to) { emit this->isTakingOff(); }
else
{
const bool td = situations.isTouchingDown(true);
if (td) { emit this->isTouchingDown(); }
}
}
} }
CAircraftModel CContextOwnAircraft::reverseLookupModel(const CAircraftModel &model) CAircraftModel CContextOwnAircraft::reverseLookupModel(const CAircraftModel &model)

View File

@@ -53,12 +53,6 @@ namespace swift::core::context
s = connection.connect(serviceName, IContextOwnAircraft::ObjectPath(), IContextOwnAircraft::InterfaceName(), s = connection.connect(serviceName, IContextOwnAircraft::ObjectPath(), IContextOwnAircraft::InterfaceName(),
"movedAircraft", this, SIGNAL(movedAircraft(swift::misc::physical_quantities::CLength))); "movedAircraft", this, SIGNAL(movedAircraft(swift::misc::physical_quantities::CLength)));
Q_ASSERT(s); Q_ASSERT(s);
s = connection.connect(serviceName, IContextOwnAircraft::ObjectPath(), IContextOwnAircraft::InterfaceName(),
"isTakingOff", this, SIGNAL(isTakingOff()));
Q_ASSERT(s);
s = connection.connect(serviceName, IContextOwnAircraft::ObjectPath(), IContextOwnAircraft::InterfaceName(),
"isTouchingDown", this, SIGNAL(isTouchingDown()));
Q_ASSERT(s);
this->relayBaseClassSignals(serviceName, connection, IContextOwnAircraft::ObjectPath(), this->relayBaseClassSignals(serviceName, connection, IContextOwnAircraft::ObjectPath(),
IContextOwnAircraft::InterfaceName()); IContextOwnAircraft::InterfaceName());

View File

@@ -232,18 +232,6 @@ namespace swift::misc::aviation
return this->size() - 1 == c; // all others not on ground return this->size() - 1 == c; // all others not on ground
} }
bool CAircraftSituationList::isTakingOff(bool alreadySortedLatestFirst) const
{
const QPair<bool, COnGroundInfo::IsOnGround> r = this->isGndFlagStableChanging(alreadySortedLatestFirst);
return r.first && r.second == COnGroundInfo::NotOnGround;
}
bool CAircraftSituationList::isTouchingDown(bool alreadySortedLatestFirst) const
{
const QPair<bool, COnGroundInfo::IsOnGround> r = this->isGndFlagStableChanging(alreadySortedLatestFirst);
return r.first && r.second == COnGroundInfo::OnGround;
}
bool CAircraftSituationList::isRotatingUp(bool alreadySortedLatestFirst) const bool CAircraftSituationList::isRotatingUp(bool alreadySortedLatestFirst) const
{ {
if (this->size() < 2) { return false; } if (this->size() < 2) { return false; }

View File

@@ -103,12 +103,6 @@ namespace swift::misc
//! Is just touching down? //! Is just touching down?
bool isJustTouchingDown(bool alreadySortedLatestFirst = false) const; bool isJustTouchingDown(bool alreadySortedLatestFirst = false) const;
//! Is taking off?
bool isTakingOff(bool alreadySortedLatestFirst = false) const;
//! Is touching down?
bool isTouchingDown(bool alreadySortedLatestFirst = false) const;
//! Is rotating up? //! Is rotating up?
bool isRotatingUp(bool alreadySortedLatestFirst = false) const; bool isRotatingUp(bool alreadySortedLatestFirst = false) const;