forked from OSchip/llvm-project
[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:
parent
558caf6d2b
commit
35bb1f5f34
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue