[libcxx-commits] [libcxx] [libc++][NFC] Remove a few unused includes (PR #88752)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 15 08:31:50 PDT 2024


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/88752

None

>From 77b99d391edde45aed989b90979b163b712f5a50 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Mon, 15 Apr 2024 17:31:30 +0200
Subject: [PATCH] [libc++][NFC] Remove a few unused includes

---
 libcxx/include/__format/format_arg.h      | 1 +
 libcxx/include/__tuple/make_tuple_types.h | 1 -
 libcxx/include/__type_traits/remove_cv.h  | 2 --
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h
index 4924e5fb3253363..aa02f81dc40e2d8 100644
--- a/libcxx/include/__format/format_arg.h
+++ b/libcxx/include/__format/format_arg.h
@@ -19,6 +19,7 @@
 #include <__fwd/format.h>
 #include <__memory/addressof.h>
 #include <__type_traits/conditional.h>
+#include <__type_traits/remove_const.h>
 #include <__utility/forward.h>
 #include <__utility/move.h>
 #include <__utility/unreachable.h>
diff --git a/libcxx/include/__tuple/make_tuple_types.h b/libcxx/include/__tuple/make_tuple_types.h
index 43161b17cfa3ab0..7bb9cdb3d3cc61a 100644
--- a/libcxx/include/__tuple/make_tuple_types.h
+++ b/libcxx/include/__tuple/make_tuple_types.h
@@ -12,7 +12,6 @@
 #include <__config>
 #include <__fwd/array.h>
 #include <__fwd/tuple.h>
-#include <__tuple/tuple_element.h>
 #include <__tuple/tuple_indices.h>
 #include <__tuple/tuple_size.h>
 #include <__tuple/tuple_types.h>
diff --git a/libcxx/include/__type_traits/remove_cv.h b/libcxx/include/__type_traits/remove_cv.h
index 8e1c04336432359..2c4e9e419a1beca 100644
--- a/libcxx/include/__type_traits/remove_cv.h
+++ b/libcxx/include/__type_traits/remove_cv.h
@@ -10,8 +10,6 @@
 #define _LIBCPP___TYPE_TRAITS_REMOVE_CV_H
 
 #include <__config>
-#include <__type_traits/remove_const.h>
-#include <__type_traits/remove_volatile.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header



More information about the libcxx-commits mailing list