[libcxx-commits] [libcxx] e8b24ee - [libc++][format][NFC] Remove some unneeded headers.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 23 08:38:25 PST 2021


Author: Mark de Wever
Date: 2021-12-23T17:38:21+01:00
New Revision: e8b24ee1153f7d57792a601705ca6951f41e70e1

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

LOG: [libc++][format][NFC] Remove some unneeded headers.

Reviewed By: #libc, Quuxplusone, Mordante

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

Added: 
    

Modified: 
    libcxx/include/__format/format_context.h
    libcxx/include/__format/formatter_string.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__format/format_context.h b/libcxx/include/__format/format_context.h
index b4fe5cc7b12c1..f8ec7c8eb0017 100644
--- a/libcxx/include/__format/format_context.h
+++ b/libcxx/include/__format/format_context.h
@@ -14,10 +14,9 @@
 #include <__config>
 #include <__format/format_args.h>
 #include <__format/format_fwd.h>
+#include <__iterator/back_insert_iterator.h>
 #include <__iterator/concepts.h>
 #include <concepts>
-#include <iterator>
-#include <string>
 
 #ifndef _LIBCPP_HAS_NO_LOCALIZATION
 #include <locale>

diff  --git a/libcxx/include/__format/formatter_string.h b/libcxx/include/__format/formatter_string.h
index 2be36a1ba9473..75a81f5184a0d 100644
--- a/libcxx/include/__format/formatter_string.h
+++ b/libcxx/include/__format/formatter_string.h
@@ -16,7 +16,6 @@
 #include <__format/format_string.h>
 #include <__format/formatter.h>
 #include <__format/parser_std_format_spec.h>
-#include <algorithm>
 #include <string_view>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


        


More information about the libcxx-commits mailing list