refactor: remove redundant != operators c++20 std will generate the !=operator as long as the class has an ==operator
This commit is contained in:
committed by
Chris Rizzitello
parent
c2db28a624
commit
e69be64773
@ -1438,11 +1438,6 @@ bool Config::CellEdge::operator==(const CellEdge &x) const
|
||||
return (m_side == x.m_side && m_interval == x.m_interval);
|
||||
}
|
||||
|
||||
bool Config::CellEdge::operator!=(const CellEdge &x) const
|
||||
{
|
||||
return !operator==(x);
|
||||
}
|
||||
|
||||
//
|
||||
// Config::Cell
|
||||
//
|
||||
@ -1566,11 +1561,6 @@ bool Config::Cell::operator==(const Cell &x) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Config::Cell::operator!=(const Cell &x) const
|
||||
{
|
||||
return !operator==(x);
|
||||
}
|
||||
|
||||
Config::Cell::const_iterator Config::Cell::begin() const
|
||||
{
|
||||
return m_neighbors.begin();
|
||||
|
||||
Reference in New Issue
Block a user