diff --git a/src/misc/pq/units.cpp b/src/misc/pq/units.cpp index db225c2a4..011f7e86a 100644 --- a/src/misc/pq/units.cpp +++ b/src/misc/pq/units.cpp @@ -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(); } diff --git a/src/misc/pq/units.h b/src/misc/pq/units.h index 515519990..34eb97a33 100644 --- a/src/misc/pq/units.h +++ b/src/misc/pq/units.h @@ -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;