ParserItem: improve the equallity testing code and remove the defaultSet() method

but we still need the m_defaultSet member because NaN == NaN as well
as NaN != NaN...
This commit is contained in:
Andreas Lauser
2014-09-13 11:02:23 +02:00
parent 435e6aa6c5
commit eccf3d4551
6 changed files with 38 additions and 46 deletions

View File

@@ -97,24 +97,4 @@ namespace Opm {
void ParserItem::setDescription(std::string description) {
m_description = description;
}
bool ParserItem::defaultSet() const {
return m_defaultSet;
}
bool ParserItem::equal(const ParserItem& other) const {
if (typeid(this) == typeid(&other)) {
if ((name() == other.name()) &&
(sizeType() == other.sizeType()) &&
(m_defaultSet == other.m_defaultSet))
return true;
else
return false;
}
else
return false;
}
}