[libcxx-commits] [libcxx] 7e325d4 - [libc++][NFC] Remove unused include in <compare>.

Christopher Di Bella via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 19 16:14:22 PDT 2021


Author: Kent Ross
Date: 2021-08-19T23:13:44Z
New Revision: 7e325d4c0c2fbdf48cb7185bfa694d4cac073622

URL: https://github.com/llvm/llvm-project/commit/7e325d4c0c2fbdf48cb7185bfa694d4cac073622
DIFF: https://github.com/llvm/llvm-project/commit/7e325d4c0c2fbdf48cb7185bfa694d4cac073622.diff

LOG: [libc++][NFC] Remove unused include in <compare>.

`<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

Added: 
    

Modified: 
    libcxx/include/compare

Removed: 
    


################################################################################
diff  --git a/libcxx/include/compare b/libcxx/include/compare
index f6814542a0c3..4c11f138b9c9 100644
--- a/libcxx/include/compare
+++ b/libcxx/include/compare
@@ -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


        


More information about the libcxx-commits mailing list