Get rid of unused comparison operator
This commit is contained in:
parent
ee3c7c61db
commit
43cfecc077
1 changed files with 3 additions and 5 deletions
|
@ -32,8 +32,8 @@ constexpr bool operator==(const GridPosition & a, const GridPosition & b) {
|
||||||
return a.x == b.x && a.y == b.y;
|
return a.x == b.x && a.y == b.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator==(const GridPosition & a, const Position & b) {
|
constexpr bool operator!=(const GridPosition & a, const GridPosition & b) {
|
||||||
return a.x == b.x && a.y == b.y;
|
return !(a == b);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator==(const Position & a, const Position & b) {
|
constexpr bool operator==(const Position & a, const Position & b) {
|
||||||
|
@ -44,8 +44,6 @@ constexpr bool operator!=(const Position & a, const Position & b) {
|
||||||
return !(a == b);
|
return !(a == b);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator!=(const GridPosition & a, const GridPosition & b) {
|
|
||||||
return !(a == b);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace pacman
|
} // namespace pacman
|
||||||
|
|
Loading…
Reference in a new issue