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:
committed by
Kacper Donat
parent
9f2f9fd2d2
commit
bfe29875b2
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user