[libcxx-commits] [libcxx] 99fd1c5 - [libc++][NFC] Don't add legacy transitive includes in <__chrono/duration.h>

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 25 08:41:04 PST 2024


Author: Nikolas Klauser
Date: 2024-11-25T17:40:54+01:00
New Revision: 99fd1c5536547ed4fc360b16e7fa2e06278707a8

URL: https://github.com/llvm/llvm-project/commit/99fd1c5536547ed4fc360b16e7fa2e06278707a8
DIFF: https://github.com/llvm/llvm-project/commit/99fd1c5536547ed4fc360b16e7fa2e06278707a8.diff

LOG: [libc++][NFC] Don't add legacy transitive includes in <__chrono/duration.h>

Added: 
    

Modified: 
    libcxx/include/__chrono/duration.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__chrono/duration.h b/libcxx/include/__chrono/duration.h
index a401178b2a75c0..941aca60095993 100644
--- a/libcxx/include/__chrono/duration.h
+++ b/libcxx/include/__chrono/duration.h
@@ -542,8 +542,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
-#  include <type_traits>
-#endif
-
 #endif // _LIBCPP___CHRONO_DURATION_H


        


More information about the libcxx-commits mailing list