Remove some unneeded STL includes
Remove a bunch of includes for STL headers that are no longer necessary.
e.g. as a result of spanification.
Change-Id: I68a95120993c4d4d5a38da6093a3f73ed53e75e7
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/121730
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dan sinclair <dsinclair@google.com>
diff --git a/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp b/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp
index b9808ca..790bf13 100644
--- a/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp
+++ b/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp
@@ -8,7 +8,6 @@
#include <map>
#include <numeric>
-#include <set>
#include <sstream>
#include <utility>
#include <vector>
diff --git a/core/fxcodec/progressive_decoder.cpp b/core/fxcodec/progressive_decoder.cpp
index 52b86fb..96dade8 100644
--- a/core/fxcodec/progressive_decoder.cpp
+++ b/core/fxcodec/progressive_decoder.cpp
@@ -9,7 +9,6 @@
#include <algorithm>
#include <memory>
#include <utility>
-#include <vector>
#include "build/build_config.h"
#include "core/fxcodec/cfx_codec_memory.h"
diff --git a/core/fxcrt/span.h b/core/fxcrt/span.h
index f32c47b..024c4ee 100644
--- a/core/fxcrt/span.h
+++ b/core/fxcrt/span.h
@@ -8,11 +8,9 @@
#include <stddef.h>
#include <stdint.h>
-#include <algorithm>
#include <array>
#include <iterator>
#include <type_traits>
-#include <utility>
#include "core/fxcrt/check.h"
#include "core/fxcrt/compiler_specific.h"
diff --git a/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp b/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
index e0fec8d..895d099 100644
--- a/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
+++ b/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
@@ -4,8 +4,6 @@
#include "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
-#include <vector>
-
#include "testing/gtest/include/gtest/gtest.h"
TEST(PDF417HighLevelEncoderTest, EncodeHighLevel) {
diff --git a/fxjs/cjs_app.h b/fxjs/cjs_app.h
index 7fbb776..d59ddfb 100644
--- a/fxjs/cjs_app.h
+++ b/fxjs/cjs_app.h
@@ -9,7 +9,6 @@
#include <memory>
#include <set>
-#include <vector>
#include "core/fxcrt/span.h"
#include "fxjs/cjs_object.h"
diff --git a/fxjs/cjs_color.cpp b/fxjs/cjs_color.cpp
index c4f47e7..6a2da17 100644
--- a/fxjs/cjs_color.cpp
+++ b/fxjs/cjs_color.cpp
@@ -7,7 +7,6 @@
#include "fxjs/cjs_color.h"
#include <algorithm>
-#include <vector>
#include "core/fxcrt/span.h"
#include "core/fxge/cfx_color.h"
diff --git a/fxjs/cjs_color.h b/fxjs/cjs_color.h
index 0655608..2933bd3 100644
--- a/fxjs/cjs_color.h
+++ b/fxjs/cjs_color.h
@@ -7,8 +7,6 @@
#ifndef FXJS_CJS_COLOR_H_
#define FXJS_CJS_COLOR_H_
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "core/fxge/cfx_color.h"
#include "fxjs/cjs_object.h"
diff --git a/fxjs/cjs_console.cpp b/fxjs/cjs_console.cpp
index 61eca47..db20281 100644
--- a/fxjs/cjs_console.cpp
+++ b/fxjs/cjs_console.cpp
@@ -6,8 +6,6 @@
#include "fxjs/cjs_console.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cjs_event_context.h"
#include "fxjs/cjs_object.h"
diff --git a/fxjs/cjs_console.h b/fxjs/cjs_console.h
index 65b0fc1..610c3ae 100644
--- a/fxjs/cjs_console.h
+++ b/fxjs/cjs_console.h
@@ -7,8 +7,6 @@
#ifndef FXJS_CJS_CONSOLE_H_
#define FXJS_CJS_CONSOLE_H_
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cjs_object.h"
#include "fxjs/js_define.h"
diff --git a/fxjs/cjs_document.h b/fxjs/cjs_document.h
index 54fc936..cb82f8c 100644
--- a/fxjs/cjs_document.h
+++ b/fxjs/cjs_document.h
@@ -9,7 +9,6 @@
#include <list>
#include <memory>
-#include <vector>
#include "core/fxcrt/observed_ptr.h"
#include "core/fxcrt/span.h"
diff --git a/fxjs/cjs_publicmethods.h b/fxjs/cjs_publicmethods.h
index e999db6..732eece 100644
--- a/fxjs/cjs_publicmethods.h
+++ b/fxjs/cjs_publicmethods.h
@@ -7,8 +7,6 @@
#ifndef FXJS_CJS_PUBLICMETHODS_H_
#define FXJS_CJS_PUBLICMETHODS_H_
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cjs_object.h"
#include "fxjs/cjs_result.h"
diff --git a/fxjs/cjs_publicmethods_embeddertest.cpp b/fxjs/cjs_publicmethods_embeddertest.cpp
index b23fada..a034a43 100644
--- a/fxjs/cjs_publicmethods_embeddertest.cpp
+++ b/fxjs/cjs_publicmethods_embeddertest.cpp
@@ -4,8 +4,6 @@
#include <math.h>
-#include <vector>
-
#include "core/fxcrt/fx_string.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fxjs/cjs_event_context.h"
diff --git a/fxjs/cjs_util.h b/fxjs/cjs_util.h
index 30121e2..10e202c 100644
--- a/fxjs/cjs_util.h
+++ b/fxjs/cjs_util.h
@@ -7,8 +7,6 @@
#ifndef FXJS_CJS_UTIL_H_
#define FXJS_CJS_UTIL_H_
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "core/fxcrt/widestring.h"
#include "fxjs/cjs_object.h"
diff --git a/fxjs/js_define.cpp b/fxjs/js_define.cpp
index 72828b6..7a89c9c 100644
--- a/fxjs/js_define.cpp
+++ b/fxjs/js_define.cpp
@@ -11,7 +11,6 @@
#include <algorithm>
#include <limits>
-#include <vector>
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_extension.h"
diff --git a/fxjs/xfa/cjx_container.cpp b/fxjs/xfa/cjx_container.cpp
index 7ba072c..6c271fb 100644
--- a/fxjs/xfa/cjx_container.cpp
+++ b/fxjs/xfa/cjx_container.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_container.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/xfa/cfxjse_class.h"
#include "fxjs/xfa/cfxjse_engine.h"
diff --git a/fxjs/xfa/cjx_datawindow.cpp b/fxjs/xfa/cjx_datawindow.cpp
index 26ec17c..dcefe38 100644
--- a/fxjs/xfa/cjx_datawindow.cpp
+++ b/fxjs/xfa/cjx_datawindow.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_datawindow.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/xfa/cfxjse_value.h"
#include "xfa/fxfa/parser/cscript_datawindow.h"
diff --git a/fxjs/xfa/cjx_delta.cpp b/fxjs/xfa/cjx_delta.cpp
index a0fc2ea..91b5a3d 100644
--- a/fxjs/xfa/cjx_delta.cpp
+++ b/fxjs/xfa/cjx_delta.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_delta.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_value.h"
diff --git a/fxjs/xfa/cjx_desc.cpp b/fxjs/xfa/cjx_desc.cpp
index 9b35ac3..63a4135 100644
--- a/fxjs/xfa/cjx_desc.cpp
+++ b/fxjs/xfa/cjx_desc.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_desc.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/cjx_eventpseudomodel.cpp b/fxjs/xfa/cjx_eventpseudomodel.cpp
index ebe84b1..3777edb 100644
--- a/fxjs/xfa/cjx_eventpseudomodel.cpp
+++ b/fxjs/xfa/cjx_eventpseudomodel.cpp
@@ -7,7 +7,6 @@
#include "fxjs/xfa/cjx_eventpseudomodel.h"
#include <algorithm>
-#include <vector>
#include "core/fxcrt/notreached.h"
#include "core/fxcrt/numerics/safe_conversions.h"
diff --git a/fxjs/xfa/cjx_exclgroup.cpp b/fxjs/xfa/cjx_exclgroup.cpp
index 0e01fac..1c87e69 100644
--- a/fxjs/xfa/cjx_exclgroup.cpp
+++ b/fxjs/xfa/cjx_exclgroup.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_exclgroup.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/cjx_field.cpp b/fxjs/xfa/cjx_field.cpp
index c9ac795..f071a6e 100644
--- a/fxjs/xfa/cjx_field.cpp
+++ b/fxjs/xfa/cjx_field.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_field.h"
-#include <vector>
-
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
diff --git a/fxjs/xfa/cjx_form.cpp b/fxjs/xfa/cjx_form.cpp
index 13cdb83..df85b94 100644
--- a/fxjs/xfa/cjx_form.cpp
+++ b/fxjs/xfa/cjx_form.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_form.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/cjx_hostpseudomodel.cpp b/fxjs/xfa/cjx_hostpseudomodel.cpp
index b14d5e2..7522e2d 100644
--- a/fxjs/xfa/cjx_hostpseudomodel.cpp
+++ b/fxjs/xfa/cjx_hostpseudomodel.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_hostpseudomodel.h"
-#include <vector>
-
#include "core/fxcrt/check.h"
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
diff --git a/fxjs/xfa/cjx_instancemanager.cpp b/fxjs/xfa/cjx_instancemanager.cpp
index e4767b6..9e1abc8 100644
--- a/fxjs/xfa/cjx_instancemanager.cpp
+++ b/fxjs/xfa/cjx_instancemanager.cpp
@@ -7,7 +7,6 @@
#include "fxjs/xfa/cjx_instancemanager.h"
#include <algorithm>
-#include <vector>
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/span.h"
diff --git a/fxjs/xfa/cjx_list.cpp b/fxjs/xfa/cjx_list.cpp
index 86950fc..5741c6c 100644
--- a/fxjs/xfa/cjx_list.cpp
+++ b/fxjs/xfa/cjx_list.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_list.h"
-#include <vector>
-
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
diff --git a/fxjs/xfa/cjx_logpseudomodel.cpp b/fxjs/xfa/cjx_logpseudomodel.cpp
index d2af347..d0eea16 100644
--- a/fxjs/xfa/cjx_logpseudomodel.cpp
+++ b/fxjs/xfa/cjx_logpseudomodel.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_logpseudomodel.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/xfa/cfxjse_value.h"
#include "xfa/fxfa/parser/cscript_logpseudomodel.h"
diff --git a/fxjs/xfa/cjx_manifest.cpp b/fxjs/xfa/cjx_manifest.cpp
index 2a24c20..f41c544 100644
--- a/fxjs/xfa/cjx_manifest.cpp
+++ b/fxjs/xfa/cjx_manifest.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_manifest.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/cjx_model.cpp b/fxjs/xfa/cjx_model.cpp
index b1df28a..8e96de4 100644
--- a/fxjs/xfa/cjx_model.cpp
+++ b/fxjs/xfa/cjx_model.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_model.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_engine.h"
diff --git a/fxjs/xfa/cjx_packet.cpp b/fxjs/xfa/cjx_packet.cpp
index e4340df..05ff30c 100644
--- a/fxjs/xfa/cjx_packet.cpp
+++ b/fxjs/xfa/cjx_packet.cpp
@@ -7,7 +7,6 @@
#include "fxjs/xfa/cjx_packet.h"
#include <utility>
-#include <vector>
#include "core/fxcrt/span.h"
#include "core/fxcrt/xml/cfx_xmldocument.h"
diff --git a/fxjs/xfa/cjx_signaturepseudomodel.cpp b/fxjs/xfa/cjx_signaturepseudomodel.cpp
index 612270a..e2d1daf 100644
--- a/fxjs/xfa/cjx_signaturepseudomodel.cpp
+++ b/fxjs/xfa/cjx_signaturepseudomodel.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_signaturepseudomodel.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_engine.h"
diff --git a/fxjs/xfa/cjx_source.cpp b/fxjs/xfa/cjx_source.cpp
index bf8ed37..d13a02d 100644
--- a/fxjs/xfa/cjx_source.cpp
+++ b/fxjs/xfa/cjx_source.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_source.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_value.h"
diff --git a/fxjs/xfa/cjx_subform.cpp b/fxjs/xfa/cjx_subform.cpp
index 5ec4236..d32533d 100644
--- a/fxjs/xfa/cjx_subform.cpp
+++ b/fxjs/xfa/cjx_subform.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_subform.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/fxv8.h"
diff --git a/fxjs/xfa/cjx_template.cpp b/fxjs/xfa/cjx_template.cpp
index 88ecb90..6ba91b4 100644
--- a/fxjs/xfa/cjx_template.cpp
+++ b/fxjs/xfa/cjx_template.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_template.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/cjx_tree.cpp b/fxjs/xfa/cjx_tree.cpp
index 4ec5c05..75b5648 100644
--- a/fxjs/xfa/cjx_tree.cpp
+++ b/fxjs/xfa/cjx_tree.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_tree.h"
-#include <vector>
-
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
diff --git a/fxjs/xfa/cjx_treelist.cpp b/fxjs/xfa/cjx_treelist.cpp
index b6753d3..80e2106 100644
--- a/fxjs/xfa/cjx_treelist.cpp
+++ b/fxjs/xfa/cjx_treelist.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_treelist.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_engine.h"
diff --git a/fxjs/xfa/cjx_wsdlconnection.cpp b/fxjs/xfa/cjx_wsdlconnection.cpp
index e6b32e4..5d4624d 100644
--- a/fxjs/xfa/cjx_wsdlconnection.cpp
+++ b/fxjs/xfa/cjx_wsdlconnection.cpp
@@ -6,8 +6,6 @@
#include "fxjs/xfa/cjx_wsdlconnection.h"
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/js_resources.h"
diff --git a/fxjs/xfa/jse_define.h b/fxjs/xfa/jse_define.h
index f73fad2..2458f64 100644
--- a/fxjs/xfa/jse_define.h
+++ b/fxjs/xfa/jse_define.h
@@ -7,8 +7,6 @@
#ifndef FXJS_XFA_JSE_DEFINE_H_
#define FXJS_XFA_JSE_DEFINE_H_
-#include <vector>
-
#include "core/fxcrt/span.h"
#include "fxjs/cjs_result.h"