Skip to content

Commit 4e0ec40

Browse files
committed
test: remove unused functions of 'operator!='
1 parent 51020fc commit 4e0ec40

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

tests/test_expected/equality_tests.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ struct Type1
3535
~Type1() = default;
3636

3737
bool operator==(Type1 const& rhs) const { return value == rhs.value; }
38-
bool operator!=(Type1 const& rhs) const { return value != rhs.value; }
3938
};
4039

4140
struct Type2
@@ -57,29 +56,18 @@ struct Type2
5756
~Type2() = default;
5857

5958
bool operator==(Type2 const& rhs) const { return value == rhs.value; }
60-
bool operator!=(Type2 const& rhs) const { return value != rhs.value; }
6159
};
6260

6361
inline bool operator==(Type1 const& lhs, Type2 const& rhs)
6462
{
6563
return lhs.value == rhs.value;
6664
}
6765

68-
inline bool operator!=(Type1 const& lhs, Type2 const& rhs)
69-
{
70-
return !(lhs == rhs);
71-
}
72-
7366
inline bool operator==(Type2 const& lhs, Type1 const& rhs)
7467
{
7568
return rhs == lhs;
7669
}
7770

78-
inline bool operator!=(Type2 const& lhs, Type1 const& rhs)
79-
{
80-
return rhs != lhs;
81-
}
82-
8371
} // namespace
8472

8573
SCENARIO("equality", "[equality]")

0 commit comments

Comments
 (0)