mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-05 17:05:57 +08:00
refactor: Remove unused vtable pinning
This yielded to clang warnings (virtual function in final class)
This commit is contained in:
@@ -21,22 +21,6 @@ namespace swift::misc::physical_quantities
|
||||
{
|
||||
using swift::misc::math::CMathUtils;
|
||||
|
||||
// pin vtables to this file
|
||||
|
||||
void CLengthUnit::anchor() {}
|
||||
|
||||
void CFrequencyUnit::anchor() {}
|
||||
|
||||
void CMassUnit::anchor() {}
|
||||
|
||||
void CPressureUnit::anchor() {}
|
||||
|
||||
void CTemperatureUnit::anchor() {}
|
||||
|
||||
void CSpeedUnit::anchor() {}
|
||||
|
||||
void CAccelerationUnit::anchor() {}
|
||||
|
||||
QString CAngleUnit::makeRoundedQStringWithUnit(double value, int digits, bool withGroupSeparator, bool i18n) const
|
||||
{
|
||||
if (digits < 0) { digits = this->getDisplayDigits(); }
|
||||
|
||||
@@ -114,8 +114,6 @@ namespace swift::misc::physical_quantities
|
||||
};
|
||||
using MetersToMeters = One;
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -343,8 +341,6 @@ namespace swift::misc::physical_quantities
|
||||
|
||||
using HertzToHertz = One;
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -444,8 +440,6 @@ namespace swift::misc::physical_quantities
|
||||
static double factor() { return 0.45359237; }
|
||||
};
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -559,8 +553,6 @@ namespace swift::misc::physical_quantities
|
||||
static double factor() { return 860.142806; }
|
||||
};
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -693,8 +685,6 @@ namespace swift::misc::physical_quantities
|
||||
static double offset() { return 32.0; }
|
||||
};
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -796,8 +786,6 @@ namespace swift::misc::physical_quantities
|
||||
static double factor() { return 0.3048 / 60.0; }
|
||||
};
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
@@ -1067,8 +1055,6 @@ namespace swift::misc::physical_quantities
|
||||
static double factor() { return 0.3048; }
|
||||
};
|
||||
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Base type
|
||||
using base_type = CMeasurementUnit;
|
||||
|
||||
Reference in New Issue
Block a user