Remove a couple unnecessary != operators. (#3808)

I believe deprecated by C++20
This commit is contained in:
Jon Ross-Perkins
2024-03-21 22:55:49 +00:00
committed by GitHub
parent aacf0cd576
commit 033c68c45b
2 changed files with 0 additions and 7 deletions
-3
View File
@@ -73,9 +73,6 @@ class PrecedenceGroup {
friend auto operator==(PrecedenceGroup lhs, PrecedenceGroup rhs) -> bool {
return lhs.level_ == rhs.level_;
}
friend auto operator!=(PrecedenceGroup lhs, PrecedenceGroup rhs) -> bool {
return lhs.level_ != rhs.level_;
}
// Compare the precedence levels for two adjacent operators.
static auto GetPriority(PrecedenceGroup left, PrecedenceGroup right)
-4
View File
@@ -63,10 +63,6 @@ struct EmptyComparable {
-> bool {
return true;
}
friend auto operator!=(EmptyComparable /*lhs*/, EmptyComparable /*rhs*/)
-> bool {
return false;
}
};
struct Value;