refactor: Remove unused vtable pinning

This yielded to clang warnings (virtual function in final class)
This commit is contained in:
Lars Toenning
2026-06-06 22:59:42 +02:00
parent c934554551
commit 9f7e8d02c6
2 changed files with 0 additions and 30 deletions

View File

@@ -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(); }

View File

@@ -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;