mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Remove unused onGroundGuessing details
This commit is contained in:
@@ -117,7 +117,6 @@ namespace BlackMisc::Aviation
|
||||
u" | alt: " % this->getAltitude().valueRoundedWithUnit(CLengthUnit::ft(), 1) %
|
||||
u' ' % this->getCorrectedAltitude().valueRoundedWithUnit(CLengthUnit::ft(), 1) %
|
||||
u"[cor] | og: " % this->getOnGroundInfo() %
|
||||
(m_onGroundGuessingDetails.isEmpty() ? QString() : u' ' % m_onGroundGuessingDetails) %
|
||||
u" | CG: " %
|
||||
(m_cg.isNull() ? QStringLiteral("null") : m_cg.valueRoundedWithUnit(CLengthUnit::m(), 1) % u' ' % m_cg.valueRoundedWithUnit(CLengthUnit::ft(), 1)) %
|
||||
u" | offset: " %
|
||||
@@ -513,10 +512,6 @@ namespace BlackMisc::Aviation
|
||||
{
|
||||
const bool set = this->setOnGround(onGround);
|
||||
this->setOnGroundDetails(details);
|
||||
if (details != OnGroundByGuessing)
|
||||
{
|
||||
m_onGroundGuessingDetails.clear();
|
||||
}
|
||||
|
||||
return set;
|
||||
}
|
||||
@@ -563,10 +558,6 @@ namespace BlackMisc::Aviation
|
||||
|
||||
bool CAircraftSituation::setOnGroundDetails(CAircraftSituation::OnGroundDetails details)
|
||||
{
|
||||
if (details != OnGroundByGuessing)
|
||||
{
|
||||
m_onGroundGuessingDetails.clear();
|
||||
}
|
||||
if (this->getOnGroundDetails() == details) { return false; }
|
||||
m_onGroundDetails = static_cast<int>(details);
|
||||
return true;
|
||||
|
||||
@@ -575,7 +575,6 @@ namespace BlackMisc
|
||||
int m_onGroundDetails = static_cast<int>(CAircraftSituation::NotSetGroundDetails);
|
||||
int m_elvInfo = static_cast<int>(CAircraftSituation::NoElevationInfo); //!< where did we gnd.elevation from?
|
||||
double m_onGroundFactor = -1; //!< interpolated ground flag, 1..on ground, 0..not on ground, -1 no info
|
||||
QString m_onGroundGuessingDetails; //!< only for debugging, not transferred via DBus etc.
|
||||
|
||||
BLACK_METACLASS(
|
||||
CAircraftSituation,
|
||||
|
||||
Reference in New Issue
Block a user