[NFC][libc++][test] Removes unneeded code.

In D130295 @mumbleskates wondered why `std::strong_ordering::equal` had
special code since it's the same as `std::strong_ordering::equivalent`.

This is indeed the case so the special case can be removed.

Reviewed By: mumbleskates, #libc, avogelsgesang, ldionne

Differential Revision: https://reviews.llvm.org/D131419
This commit is contained in:
Mark de Wever 2022-08-08 19:53:31 +02:00
parent 558caf6d2b
commit 35bb1f5f34
1 changed files with 0 additions and 3 deletions

View File

@ -139,9 +139,6 @@ constexpr void AssertOrderReturn() {
template <class Order, class T, class U = T>
constexpr bool testOrder(const T& t1, const U& t2, Order order) {
bool equal = order == Order::equivalent;
if constexpr (std::same_as<Order, std::strong_ordering>)
equal |= order == Order::equal;
bool less = order == Order::less;
return (t1 <=> t2 == order) && testComparisons(t1, t2, equal, less);