From 91bb2b47e7ed2fff4a49e74d4522f6ea414956c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 26 Apr 2023 15:29:12 +0200 Subject: [PATCH] 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. --- .../eclipse/EclipseState/Tables/FlatTable.hpp | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/opm/input/eclipse/EclipseState/Tables/FlatTable.hpp b/opm/input/eclipse/EclipseState/Tables/FlatTable.hpp index 804982521..95fe29fad 100644 --- a/opm/input/eclipse/EclipseState/Tables/FlatTable.hpp +++ b/opm/input/eclipse/EclipseState/Tables/FlatTable.hpp @@ -96,12 +96,6 @@ struct GravityTable : public FlatTableWithCopy { return GravityTable({{1.0, 2.0, 3.0}}); } - - template - void serializeOp(Serializer& serializer) - { - FlatTableWithCopy::serializeOp(serializer); - } }; struct DENSITYRecord { @@ -137,12 +131,6 @@ struct DensityTable : public FlatTableWithCopy { return DensityTable({{1.0, 2.0, 3.0}}); } - - template - void serializeOp(Serializer& serializer) - { - FlatTableWithCopy::serializeOp(serializer); - } }; struct DiffCoeffRecord { @@ -286,12 +274,6 @@ struct PvtwTable : public FlatTableWithCopy { return PvtwTable({{1.0, 2.0, 3.0, 4.0, 5.0}}); } - - template - void serializeOp(Serializer& serializer) - { - FlatTableWithCopy::serializeOp(serializer); - } }; struct ROCKRecord { @@ -323,12 +305,6 @@ struct RockTable : public FlatTableWithCopy { return RockTable({{1.0, 2.0}}); } - - template - void serializeOp(Serializer& serializer) - { - FlatTableWithCopy::serializeOp(serializer); - } }; struct PVCDORecord {