From 2fd1170cd1a1e1f8a1a05fad15bfd2492f9fe61a Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 17 Mar 2020 14:02:21 +0100 Subject: [PATCH] remove accessors in WellTestConfig added for external serialization --- .../eclipse/EclipseState/Schedule/Well/WellTestConfig.hpp | 2 -- .../eclipse/EclipseState/Schedule/Well/WellTestConfig.cpp | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.hpp index d533365df..25e33feda 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.hpp @@ -79,8 +79,6 @@ public: const WTESTWell& get(const std::string& well, Reason reason) const; size_t size() const; - const std::vector& getWells() const; - static std::string reasonToString(const Reason reason); bool operator==(const WellTestConfig& data) const; diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.cpp index a539172c0..7a26c6da2 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellTestConfig.cpp @@ -151,13 +151,8 @@ size_t WellTestConfig::size() const { } -const std::vector& WellTestConfig::getWells() const { - return wells; -} - - bool WellTestConfig::operator==(const WellTestConfig& data) const { - return this->getWells() == data.getWells(); + return this->wells == data.wells; }