diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/WList.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/WList.hpp index 90ed3e6da..3c02eb251 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/WList.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/WList.hpp @@ -41,9 +41,6 @@ public: bool has(const std::string& well) const; std::vector wells() const; - //storage::const_iterator begin() const; - //storage::const_iterator end() const; - bool operator==(const WList& data) const; template diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WList.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WList.cpp index 03dea8597..a5116fabd 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Well/WList.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Well/WList.cpp @@ -54,29 +54,15 @@ void WList::setName(const std::string& wListName) { this->m_name = wListName; } -/*void WList::del(const std::string& well) { - auto it = std::find(this->well_list.begin(), this->well_list.end(), well); - if (it != this->well_list.end()) this->well_list.erase(it); -}*/ - void WList::del(const std::string& well) { auto end_keep = std::remove(this->well_list.begin(), this->well_list.end(), well); this->well_list.erase(end_keep, this->well_list.end()); } - std::vector WList::wells() const { return this->well_list; } -/*WList::storage::const_iterator WList::begin() const { - return this->well_list.begin(); -} - -WList::storage::const_iterator WList::end() const { - return this->well_list.end(); -}*/ - bool WList::operator==(const WList& data) const { return this->well_list == data.well_list; }