cleaned up code - removed comments

This commit is contained in:
Jostein Alvestad 2021-05-14 15:17:25 +02:00
parent c6a798cd2a
commit 1ffbfded8e
2 changed files with 0 additions and 17 deletions

View File

@ -41,9 +41,6 @@ public:
bool has(const std::string& well) const;
std::vector<std::string> wells() const;
//storage::const_iterator begin() const;
//storage::const_iterator end() const;
bool operator==(const WList& data) const;
template<class Serializer>

View File

@ -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<std::string> 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;
}