Use Base Class' serializeOp() Where Possible

Classes which inherit from FlatTableWithCopy and just call the base
class implementation of 'serializeOp()' don't really need a separate
implementation of that member function.

Noticed by: [at]blattms.
This commit is contained in:
Bård Skaflestad 2023-04-26 15:29:12 +02:00
parent 5cdeb6137b
commit 91bb2b47e7

View File

@ -96,12 +96,6 @@ struct GravityTable : public FlatTableWithCopy<GRAVITYRecord>
{ {
return GravityTable({{1.0, 2.0, 3.0}}); return GravityTable({{1.0, 2.0, 3.0}});
} }
template <class Serializer>
void serializeOp(Serializer& serializer)
{
FlatTableWithCopy::serializeOp(serializer);
}
}; };
struct DENSITYRecord { struct DENSITYRecord {
@ -137,12 +131,6 @@ struct DensityTable : public FlatTableWithCopy<DENSITYRecord>
{ {
return DensityTable({{1.0, 2.0, 3.0}}); return DensityTable({{1.0, 2.0, 3.0}});
} }
template <class Serializer>
void serializeOp(Serializer& serializer)
{
FlatTableWithCopy::serializeOp(serializer);
}
}; };
struct DiffCoeffRecord { struct DiffCoeffRecord {
@ -286,12 +274,6 @@ struct PvtwTable : public FlatTableWithCopy<PVTWRecord>
{ {
return PvtwTable({{1.0, 2.0, 3.0, 4.0, 5.0}}); return PvtwTable({{1.0, 2.0, 3.0, 4.0, 5.0}});
} }
template <class Serializer>
void serializeOp(Serializer& serializer)
{
FlatTableWithCopy::serializeOp(serializer);
}
}; };
struct ROCKRecord { struct ROCKRecord {
@ -323,12 +305,6 @@ struct RockTable : public FlatTableWithCopy<ROCKRecord>
{ {
return RockTable({{1.0, 2.0}}); return RockTable({{1.0, 2.0}});
} }
template <class Serializer>
void serializeOp(Serializer& serializer)
{
FlatTableWithCopy::serializeOp(serializer);
}
}; };
struct PVCDORecord { struct PVCDORecord {