Base: Removed unused private variable decimals to avoid lint issue.

The linter report 'private field 'decimals' is not used'.  The
getDecimals() method return pack.defDecimals, which was also
used to set the value of the decimals variable in the initializer,
so the decimals variable is redundant.
This commit is contained in:
Petter Reinholdtsen
2026-01-17 08:41:04 +01:00
committed by Kacper Donat
parent 9f2f9fd2d2
commit bfe29875b2
2 changed files with 0 additions and 2 deletions

View File

@@ -44,7 +44,6 @@ using Base::UnitsSchemaSpec;
UnitsSchemas::UnitsSchemas(const UnitsSchemasDataPack& pack)
: pack {pack}
, denominator {pack.defDenominator}
, decimals {pack.defDecimals}
{}
size_t UnitsSchemas::count() const

View File

@@ -71,7 +71,6 @@ private:
UnitsSchemasDataPack pack;
std::unique_ptr<UnitsSchema> current {std::make_unique<UnitsSchema>(spec())};
std::size_t denominator;
std::size_t decimals;
};