[libc++][NFC] Remove unused include in <compare>.
authorKent Ross <k@mad.cash>
Thu, 19 Aug 2021 23:06:52 +0000 (23:06 +0000)
committerChristopher Di Bella <cjdb@google.com>
Thu, 19 Aug 2021 23:13:44 +0000 (23:13 +0000)
`<type_traits>` was included in the first iteration of `<compare>` when
it was created as a monolithic header, then never removed. Removing it
now is a beneficial no-op since it is not guaranteed by the standard
and is already included by all of its subheaders.

Reviewed By: cjdb, #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D107801

libcxx/include/compare

index f681454..4c11f13 100644 (file)
@@ -130,7 +130,6 @@ namespace std {
 #include <__compare/compare_three_way_result.h>
 #include <__compare/ordering.h>
 #include <__config>
-#include <type_traits>
 
 #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
 #pragma GCC system_header