tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e02069b0ff60c6888d68f98bcbf1508f3c321d6f
parent 43db571e66d81ed58691994e453408607e1ce6c5
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Thu, 13 Nov 2025 10:50:25 +0000

Bug 1999715 - Remove unused STL header inclusions in js/** r=iain,spidermonkey-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D272284

Diffstat:
Mjs/public/Debug.h | 2--
Mjs/src/builtin/Array.cpp | 1-
Mjs/src/builtin/Profilers.cpp | 1-
Mjs/src/builtin/TestingFunctions.cpp | 2--
Mjs/src/builtin/intl/DisplayNames.cpp | 2--
Mjs/src/builtin/temporal/Calendar.cpp | 3---
Mjs/src/builtin/temporal/Duration.cpp | 2--
Mjs/src/builtin/temporal/Instant.cpp | 2--
Mjs/src/builtin/temporal/PlainDate.cpp | 1-
Mjs/src/builtin/temporal/PlainDateTime.cpp | 1-
Mjs/src/builtin/temporal/PlainMonthDay.cpp | 2--
Mjs/src/builtin/temporal/PlainYearMonth.cpp | 2--
Mjs/src/builtin/temporal/Temporal.cpp | 1-
Mjs/src/builtin/temporal/TimeZone.cpp | 1-
Mjs/src/builtin/temporal/ZonedDateTime.cpp | 1-
Mjs/src/debugger/DebuggerMemory.cpp | 1-
Mjs/src/debugger/Environment.cpp | 1-
Mjs/src/debugger/Object.cpp | 5++---
Mjs/src/debugger/Script-inl.h | 2--
Mjs/src/frontend/EitherParser.h | 3---
Mjs/src/frontend/ScriptIndex.h | 2--
Mjs/src/gc/AllocKind.h | 1-
Mjs/src/gc/BufferAllocator.h | 1-
Mjs/src/gc/GC.cpp | 2--
Mjs/src/gc/GCParallelTask.h | 2--
Mjs/src/gc/IteratorUtils.h | 2--
Mjs/src/gc/Zone.cpp | 2--
Mjs/src/irregexp/RegExpShim.h | 1-
Mjs/src/irregexp/imported/regexp-bytecodes-inl.h | 1-
Mjs/src/irregexp/util/VectorShim.h | 3---
Mjs/src/jit/CacheIRSpewer.cpp | 1-
Mjs/src/jit/ExecutableAllocator.h | 1-
Mjs/src/jit/JitAllocPolicy.h | 1-
Mjs/src/jit/MIR-wasm.h | 1-
Mjs/src/jit/MIR.h | 1-
Mjs/src/jit/arm/Assembler-arm.h | 1-
Mjs/src/jit/arm/CodeGenerator-arm.cpp | 2--
Mjs/src/jit/arm64/Architecture-arm64.h | 1-
Mjs/src/jit/arm64/Assembler-arm64.h | 2--
Mjs/src/jit/loong64/Architecture-loong64.h | 1-
Mjs/src/jit/loong64/Assembler-loong64.h | 1-
Mjs/src/jit/mips64/Assembler-mips64.h | 2--
Mjs/src/jit/none/MacroAssembler-none.h | 2--
Mjs/src/jit/riscv64/Architecture-riscv64.h | 1-
Mjs/src/jit/riscv64/MacroAssembler-riscv64.h | 2--
Mjs/src/jit/riscv64/extension/base-assembler-riscv.h | 2--
Mjs/src/jit/x64/Assembler-x64.h | 2--
Mjs/src/jit/x86-shared/Architecture-x86-shared.cpp | 2--
Mjs/src/jit/x86-shared/Constants-x86-shared.h | 1-
Mjs/src/jit/x86/Assembler-x86.h | 2--
Mjs/src/jit/x86/CodeGenerator-x86.cpp | 2--
Mjs/src/jsapi-tests/testCharacterEncoding.cpp | 2--
Mjs/src/jsapi-tests/testErrorInterceptor.cpp | 1-
Mjs/src/jsapi-tests/testGCChunkPool.cpp | 2--
Mjs/src/jsapi-tests/testGCHooks.cpp | 2--
Mjs/src/jsapi-tests/testInt128.cpp | 1-
Mjs/src/jsapi-tests/testJitABIcalls.cpp | 1-
Mjs/src/jsapi-tests/testParserAtom.cpp | 5++---
Mjs/src/jsapi-tests/testScriptSourceCompression.cpp | 1-
Mjs/src/jsapi-tests/testSinglyLinkedList.cpp | 2--
Mjs/src/jsapi-tests/tests.h | 1-
Mjs/src/jsapi.cpp | 1-
Mjs/src/jsdate.cpp | 1-
Mjs/src/threading/Mutex.h | 2--
Mjs/src/vm/Compartment-inl.h | 2--
Mjs/src/vm/DateTime.cpp | 1-
Mjs/src/vm/ErrorObject.h | 1-
Mjs/src/vm/JSAtomUtils.cpp | 1-
Mjs/src/vm/JSContext.cpp | 1-
Mjs/src/vm/JSFunction.cpp | 1-
Mjs/src/vm/JSScript.cpp | 1-
Mjs/src/vm/NativeObject.cpp | 1-
Mjs/src/vm/Stack.cpp | 1-
Mjs/src/vm/StringType.cpp | 1-
Mjs/src/vm/ToSource.cpp | 1-
Mjs/src/wasm/WasmAnyRef.h | 2--
Mjs/src/wasm/WasmBCDefs.h | 3---
Mjs/src/wasm/WasmGcObject.cpp | 2--
Mjs/src/wasm/WasmStubs.cpp | 1-
Mjs/src/wasm/WasmValType.h | 2--
Mjs/src/wasm/WasmValidate.h | 2--
Mjs/xpconnect/src/XPCException.cpp | 2--
82 files changed, 4 insertions(+), 128 deletions(-)

diff --git a/js/public/Debug.h b/js/public/Debug.h @@ -14,8 +14,6 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/Vector.h" -#include <utility> - #include "jstypes.h" #include "js/GCAPI.h" diff --git a/js/src/builtin/Array.cpp b/js/src/builtin/Array.cpp @@ -16,7 +16,6 @@ #include <algorithm> #include <cmath> -#include <iterator> #include "jsfriendapi.h" #include "jsnum.h" diff --git a/js/src/builtin/Profilers.cpp b/js/src/builtin/Profilers.cpp @@ -11,7 +11,6 @@ #include "mozilla/Compiler.h" #include "mozilla/Sprintf.h" -#include <iterator> #include <stdarg.h> #include "util/GetPidProvider.h" // getpid() diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp @@ -29,8 +29,6 @@ #include <cstdlib> #include <ctime> #include <functional> -#include <initializer_list> -#include <iterator> #include <utility> #if defined(XP_UNIX) && !defined(XP_DARWIN) diff --git a/js/src/builtin/intl/DisplayNames.cpp b/js/src/builtin/intl/DisplayNames.cpp @@ -13,8 +13,6 @@ #include "mozilla/PodOperations.h" #include "mozilla/Span.h" -#include <algorithm> - #include "jsnum.h" #include "jspubtd.h" diff --git a/js/src/builtin/temporal/Calendar.cpp b/js/src/builtin/temporal/Calendar.cpp @@ -24,11 +24,8 @@ #include <algorithm> #include <array> #include <cmath> -#include <initializer_list> -#include <iterator> #include <stddef.h> #include <stdint.h> -#include <utility> #include "diplomat_runtime.hpp" #include "jsnum.h" diff --git a/js/src/builtin/temporal/Duration.cpp b/js/src/builtin/temporal/Duration.cpp @@ -15,10 +15,8 @@ #include <algorithm> #include <cmath> #include <cstdlib> -#include <initializer_list> #include <stdint.h> #include <type_traits> -#include <utility> #include "jsnum.h" #include "jspubtd.h" diff --git a/js/src/builtin/temporal/Instant.cpp b/js/src/builtin/temporal/Instant.cpp @@ -12,10 +12,8 @@ #include <algorithm> #include <array> #include <cstdlib> -#include <iterator> #include <stddef.h> #include <stdint.h> -#include <utility> #include "jsnum.h" #include "jspubtd.h" diff --git a/js/src/builtin/temporal/PlainDate.cpp b/js/src/builtin/temporal/PlainDate.cpp @@ -12,7 +12,6 @@ #include <cmath> #include <cstdlib> #include <stdint.h> -#include <utility> #include "jsdate.h" #include "jsnum.h" diff --git a/js/src/builtin/temporal/PlainDateTime.cpp b/js/src/builtin/temporal/PlainDateTime.cpp @@ -10,7 +10,6 @@ #include "mozilla/Casting.h" #include <algorithm> -#include <utility> #include "jspubtd.h" #include "NamespaceImports.h" diff --git a/js/src/builtin/temporal/PlainMonthDay.cpp b/js/src/builtin/temporal/PlainMonthDay.cpp @@ -8,8 +8,6 @@ #include "mozilla/Assertions.h" -#include <utility> - #include "jspubtd.h" #include "NamespaceImports.h" diff --git a/js/src/builtin/temporal/PlainYearMonth.cpp b/js/src/builtin/temporal/PlainYearMonth.cpp @@ -8,8 +8,6 @@ #include "mozilla/Assertions.h" -#include <utility> - #include "jspubtd.h" #include "NamespaceImports.h" diff --git a/js/src/builtin/temporal/Temporal.cpp b/js/src/builtin/temporal/Temporal.cpp @@ -17,7 +17,6 @@ #include <algorithm> #include <cmath> #include <cstdlib> -#include <initializer_list> #include <iterator> #include <limits> #include <stdint.h> diff --git a/js/src/builtin/temporal/TimeZone.cpp b/js/src/builtin/temporal/TimeZone.cpp @@ -16,7 +16,6 @@ #include <cmath> #include <cstdlib> -#include <iterator> #include <string_view> #include <utility> diff --git a/js/src/builtin/temporal/ZonedDateTime.cpp b/js/src/builtin/temporal/ZonedDateTime.cpp @@ -11,7 +11,6 @@ #include <algorithm> #include <cstdlib> -#include <utility> #include "jspubtd.h" #include "NamespaceImports.h" diff --git a/js/src/debugger/DebuggerMemory.cpp b/js/src/debugger/DebuggerMemory.cpp @@ -9,7 +9,6 @@ #include "mozilla/Maybe.h" #include <stdlib.h> -#include <utility> #include "jsapi.h" diff --git a/js/src/debugger/Environment.cpp b/js/src/debugger/Environment.cpp @@ -11,7 +11,6 @@ #include "mozilla/Vector.h" // for Vector #include <string.h> // for strlen, size_t -#include <utility> // for move #include "debugger/Debugger.h" // for Env, Debugger, ValueToIdentifier #include "debugger/Object.h" // for DebuggerObject diff --git a/js/src/debugger/Object.cpp b/js/src/debugger/Object.cpp @@ -12,9 +12,8 @@ #include "mozilla/Vector.h" // for Vector #include <algorithm> -#include <string.h> // for size_t, strlen -#include <type_traits> // for remove_reference<>::type -#include <utility> // for move +#include <string.h> // for size_t, strlen +#include <utility> // for move #include "jsapi.h" // for CallArgs, RootedObject, Rooted diff --git a/js/src/debugger/Script-inl.h b/js/src/debugger/Script-inl.h @@ -12,8 +12,6 @@ #include "mozilla/Assertions.h" // for AssertionConditionType, MOZ_ASSERT #include "mozilla/Variant.h" // for AsVariant -#include <utility> // for move - #include "jstypes.h" // for JS_PUBLIC_API #include "debugger/Debugger.h" // for DebuggerScriptReferent #include "gc/Cell.h" // for Cell diff --git a/js/src/frontend/EitherParser.h b/js/src/frontend/EitherParser.h @@ -15,9 +15,6 @@ #include "mozilla/Utf8.h" #include "mozilla/Variant.h" -#include <type_traits> -#include <utility> - #include "frontend/Parser.h" #include "js/ColumnNumber.h" // JS::LimitedColumnNumberOneOrigin diff --git a/js/src/frontend/ScriptIndex.h b/js/src/frontend/ScriptIndex.h @@ -7,8 +7,6 @@ #ifndef frontend_ScriptIndex_h #define frontend_ScriptIndex_h -#include <utility> - #include "frontend/TypedIndex.h" // TypedIndex #include "js/GCPolicyAPI.h" // JS::GCPolicy, JS::IgnoreGCPolicy diff --git a/js/src/gc/AllocKind.h b/js/src/gc/AllocKind.h @@ -15,7 +15,6 @@ #include "mozilla/EnumeratedArray.h" #include "mozilla/EnumeratedRange.h" -#include <iterator> #include <stdint.h> #include "js/TraceKind.h" diff --git a/js/src/gc/BufferAllocator.h b/js/src/gc/BufferAllocator.h @@ -18,7 +18,6 @@ #include <cstdint> #include <stddef.h> -#include <utility> #include "jstypes.h" // JS_PUBLIC_API diff --git a/js/src/gc/GC.cpp b/js/src/gc/GC.cpp @@ -198,8 +198,6 @@ #include "mozilla/TimeStamp.h" #include <algorithm> -#include <initializer_list> -#include <iterator> #include <stdlib.h> #include <string.h> #include <utility> diff --git a/js/src/gc/GCParallelTask.h b/js/src/gc/GCParallelTask.h @@ -11,8 +11,6 @@ #include "mozilla/Maybe.h" #include "mozilla/TimeStamp.h" -#include <utility> - #include "gc/GCContext.h" #include "js/Utility.h" #include "threading/ProtectedData.h" diff --git a/js/src/gc/IteratorUtils.h b/js/src/gc/IteratorUtils.h @@ -10,8 +10,6 @@ #include "mozilla/Array.h" #include "mozilla/Maybe.h" -#include <initializer_list> - namespace js { /* diff --git a/js/src/gc/Zone.cpp b/js/src/gc/Zone.cpp @@ -10,8 +10,6 @@ #include "mozilla/Sprintf.h" #include "mozilla/TimeStamp.h" -#include <type_traits> - #include "gc/FinalizationObservers.h" #include "gc/GCContext.h" #include "gc/PublicIterators.h" diff --git a/js/src/irregexp/RegExpShim.h b/js/src/irregexp/RegExpShim.h @@ -20,7 +20,6 @@ #include <algorithm> #include <cctype> -#include <iterator> #include <optional> #include "irregexp/RegExpTypes.h" diff --git a/js/src/irregexp/imported/regexp-bytecodes-inl.h b/js/src/irregexp/imported/regexp-bytecodes-inl.h @@ -8,7 +8,6 @@ #include "irregexp/imported/regexp-bytecodes.h" // Include the non-inl header before the rest of the headers. -#include <limits> #include <type_traits> namespace v8 { diff --git a/js/src/irregexp/util/VectorShim.h b/js/src/irregexp/util/VectorShim.h @@ -5,10 +5,7 @@ #ifndef V8_UTIL_VECTOR_H_ #define V8_UTIL_VECTOR_H_ -#include <algorithm> #include <cstring> -#include <iterator> -#include <memory> #include "js/AllocPolicy.h" #include "js/Utility.h" diff --git a/js/src/jit/CacheIRSpewer.cpp b/js/src/jit/CacheIRSpewer.cpp @@ -8,7 +8,6 @@ #include "mozilla/Sprintf.h" -#include <algorithm> #include <stdarg.h> #include "jsapi.h" diff --git a/js/src/jit/ExecutableAllocator.h b/js/src/jit/ExecutableAllocator.h @@ -30,7 +30,6 @@ #include "mozilla/EnumeratedArray.h" -#include <limits> #include <stddef.h> // for ptrdiff_t #include "jit/ProcessExecutableMemory.h" diff --git a/js/src/jit/JitAllocPolicy.h b/js/src/jit/JitAllocPolicy.h @@ -16,7 +16,6 @@ #include <algorithm> #include <stddef.h> #include <string.h> -#include <type_traits> #include <utility> #include "ds/LifoAlloc.h" diff --git a/js/src/jit/MIR-wasm.h b/js/src/jit/MIR-wasm.h @@ -19,7 +19,6 @@ #endif #include <algorithm> -#include <initializer_list> #include "jit/MIR.h" #include "util/DifferentialTesting.h" diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h @@ -26,7 +26,6 @@ #endif #include <algorithm> -#include <initializer_list> #include "NamespaceImports.h" diff --git a/js/src/jit/arm/Assembler-arm.h b/js/src/jit/arm/Assembler-arm.h @@ -11,7 +11,6 @@ #include "mozilla/MathAlgorithms.h" #include <algorithm> -#include <iterator> #include <type_traits> #include "jit/arm/Architecture-arm.h" diff --git a/js/src/jit/arm/CodeGenerator-arm.cpp b/js/src/jit/arm/CodeGenerator-arm.cpp @@ -10,8 +10,6 @@ #include "mozilla/MathAlgorithms.h" #include "mozilla/Maybe.h" -#include <iterator> - #include "jsnum.h" #include "jit/CodeGenerator.h" diff --git a/js/src/jit/arm64/Architecture-arm64.h b/js/src/jit/arm64/Architecture-arm64.h @@ -11,7 +11,6 @@ #include "mozilla/MathAlgorithms.h" #include <algorithm> -#include <iterator> #include "jit/arm64/vixl/Cpu-Features-vixl.h" #include "jit/arm64/vixl/Instructions-vixl.h" diff --git a/js/src/jit/arm64/Assembler-arm64.h b/js/src/jit/arm64/Assembler-arm64.h @@ -7,8 +7,6 @@ #ifndef A64_ASSEMBLER_A64_H_ #define A64_ASSEMBLER_A64_H_ -#include <iterator> - #include "jit/arm64/vixl/Assembler-vixl.h" #include "jit/CompactBuffer.h" diff --git a/js/src/jit/loong64/Architecture-loong64.h b/js/src/jit/loong64/Architecture-loong64.h @@ -10,7 +10,6 @@ #include "mozilla/MathAlgorithms.h" #include <algorithm> -#include <iterator> #include "jit/shared/Architecture-shared.h" diff --git a/js/src/jit/loong64/Assembler-loong64.h b/js/src/jit/loong64/Assembler-loong64.h @@ -8,7 +8,6 @@ #define jit_loong64_Assembler_loong64_h #include "mozilla/Sprintf.h" -#include <iterator> #include "jit/CompactBuffer.h" #include "jit/JitCode.h" diff --git a/js/src/jit/mips64/Assembler-mips64.h b/js/src/jit/mips64/Assembler-mips64.h @@ -7,8 +7,6 @@ #ifndef jit_mips64_Assembler_mips64_h #define jit_mips64_Assembler_mips64_h -#include <iterator> - #include "jit/mips-shared/Assembler-mips-shared.h" #include "jit/mips64/Architecture-mips64.h" diff --git a/js/src/jit/none/MacroAssembler-none.h b/js/src/jit/none/MacroAssembler-none.h @@ -7,8 +7,6 @@ #ifndef jit_none_MacroAssembler_none_h #define jit_none_MacroAssembler_none_h -#include <iterator> - #include "jit/MoveResolver.h" #include "jit/none/Assembler-none.h" #include "jit/shared/IonAssemblerBuffer.h" diff --git a/js/src/jit/riscv64/Architecture-riscv64.h b/js/src/jit/riscv64/Architecture-riscv64.h @@ -12,7 +12,6 @@ #include "mozilla/MathAlgorithms.h" #include <algorithm> -#include <iterator> #include "jit/JitSpewer.h" #include "jit/shared/Architecture-shared.h" diff --git a/js/src/jit/riscv64/MacroAssembler-riscv64.h b/js/src/jit/riscv64/MacroAssembler-riscv64.h @@ -10,8 +10,6 @@ #ifndef jit_riscv64_MacroAssembler_riscv64_h #define jit_riscv64_MacroAssembler_riscv64_h -#include <iterator> - #include "jit/MoveResolver.h" #include "jit/riscv64/Assembler-riscv64.h" #include "wasm/WasmTypeDecls.h" diff --git a/js/src/jit/riscv64/extension/base-assembler-riscv.h b/js/src/jit/riscv64/extension/base-assembler-riscv.h @@ -35,8 +35,6 @@ #ifndef jit_riscv64_extension_Base_assembler_riscv_h #define jit_riscv64_extension_Base_assembler_riscv_h -#include <memory> -#include <set> #include <stdio.h> #include "jit/Label.h" diff --git a/js/src/jit/x64/Assembler-x64.h b/js/src/jit/x64/Assembler-x64.h @@ -7,8 +7,6 @@ #ifndef jit_x64_Assembler_x64_h #define jit_x64_Assembler_x64_h -#include <iterator> - #include "jit/JitCode.h" #include "jit/shared/Assembler-shared.h" diff --git a/js/src/jit/x86-shared/Architecture-x86-shared.cpp b/js/src/jit/x86-shared/Architecture-x86-shared.cpp @@ -9,8 +9,6 @@ # error "Wrong architecture. Only x86 and x64 should build this file!" #endif -#include <iterator> - #include "jit/RegisterSets.h" const char* js::jit::FloatRegister::name() const { diff --git a/js/src/jit/x86-shared/Constants-x86-shared.h b/js/src/jit/x86-shared/Constants-x86-shared.h @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" -#include <iterator> #include <stddef.h> #include <stdint.h> diff --git a/js/src/jit/x86/Assembler-x86.h b/js/src/jit/x86/Assembler-x86.h @@ -7,8 +7,6 @@ #ifndef jit_x86_Assembler_x86_h #define jit_x86_Assembler_x86_h -#include <iterator> - #include "jit/CompactBuffer.h" #include "jit/JitCode.h" #include "jit/shared/Assembler-shared.h" diff --git a/js/src/jit/x86/CodeGenerator-x86.cpp b/js/src/jit/x86/CodeGenerator-x86.cpp @@ -8,8 +8,6 @@ #include "mozilla/DebugOnly.h" -#include <iterator> - #include "jsnum.h" #include "jit/CodeGenerator.h" diff --git a/js/src/jsapi-tests/testCharacterEncoding.cpp b/js/src/jsapi-tests/testCharacterEncoding.cpp @@ -7,8 +7,6 @@ #include <clocale> #include <cstring> #include <cwchar> -#include <initializer_list> -#include <iterator> #include <string_view> #include "js/CharacterEncoding.h" diff --git a/js/src/jsapi-tests/testErrorInterceptor.cpp b/js/src/jsapi-tests/testErrorInterceptor.cpp @@ -1,4 +1,3 @@ -#include <iterator> #include "js/ErrorInterceptor.h" #include "jsapi-tests/tests.h" diff --git a/js/src/jsapi-tests/testGCChunkPool.cpp b/js/src/jsapi-tests/testGCChunkPool.cpp @@ -5,8 +5,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include <utility> - #include "gc/GCLock.h" #include "gc/GCRuntime.h" #include "jsapi-tests/tests.h" diff --git a/js/src/jsapi-tests/testGCHooks.cpp b/js/src/jsapi-tests/testGCHooks.cpp @@ -5,8 +5,6 @@ #include "mozilla/ScopeExit.h" #include "mozilla/UniquePtr.h" -#include <iterator> - #include "jsapi-tests/tests.h" static unsigned gSliceCallbackCount = 0; diff --git a/js/src/jsapi-tests/testInt128.cpp b/js/src/jsapi-tests/testInt128.cpp @@ -13,7 +13,6 @@ # include <limits> # include <optional> # include <stdint.h> -# include <utility> # include "builtin/temporal/Int128.h" # include "jsapi-tests/tests.h" diff --git a/js/src/jsapi-tests/testJitABIcalls.cpp b/js/src/jsapi-tests/testJitABIcalls.cpp @@ -8,7 +8,6 @@ #include "mozilla/FloatingPoint.h" #include "mozilla/IntegerTypeTraits.h" -#include <iterator> #include <type_traits> #include "jit/ABIFunctions.h" diff --git a/js/src/jsapi-tests/testParserAtom.cpp b/js/src/jsapi-tests/testParserAtom.cpp @@ -5,9 +5,8 @@ #include "mozilla/Range.h" // mozilla::Range #include "mozilla/Utf8.h" // mozilla::Utf8Unit -#include <string> // std::char_traits -#include <utility> // std::initializer_list -#include <vector> // std::vector +#include <string> // std::char_traits +#include <vector> // std::vector #include "frontend/FrontendContext.h" // AutoReportFrontendContext #include "frontend/ParserAtom.h" // js::frontend::ParserAtomsTable, js::frontend::WellKnownParserAtoms diff --git a/js/src/jsapi-tests/testScriptSourceCompression.cpp b/js/src/jsapi-tests/testScriptSourceCompression.cpp @@ -10,7 +10,6 @@ #include "mozilla/Utf8.h" // mozilla::Utf8Unit #include <algorithm> // std::all_of, std::equal, std::move, std::transform -#include <iterator> // std::size #include <memory> // std::uninitialized_fill_n #include <stddef.h> // size_t #include <stdint.h> // uint32_t diff --git a/js/src/jsapi-tests/testSinglyLinkedList.cpp b/js/src/jsapi-tests/testSinglyLinkedList.cpp @@ -5,8 +5,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include <array> - #include "ds/SinglyLinkedList.h" #include "jsapi-tests/tests.h" diff --git a/js/src/jsapi-tests/tests.h b/js/src/jsapi-tests/tests.h @@ -10,7 +10,6 @@ #include "mozilla/Sprintf.h" #include <errno.h> -#include <iterator> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp @@ -20,7 +20,6 @@ #ifdef __linux__ # include <dlfcn.h> #endif -#include <iterator> #include <stdarg.h> #include <string.h> diff --git a/js/src/jsdate.cpp b/js/src/jsdate.cpp @@ -25,7 +25,6 @@ #include <algorithm> #include <cstring> -#include <iterator> #include <math.h> #include <string.h> diff --git a/js/src/threading/Mutex.h b/js/src/threading/Mutex.h @@ -12,8 +12,6 @@ #include "mozilla/PlatformMutex.h" #include "mozilla/ThreadLocal.h" -#include <utility> - #include "threading/ThreadId.h" namespace js { diff --git a/js/src/vm/Compartment-inl.h b/js/src/vm/Compartment-inl.h @@ -9,8 +9,6 @@ #include "vm/Compartment.h" -#include <type_traits> - #include "jsapi.h" #include "jsfriendapi.h" #include "jsnum.h" diff --git a/js/src/vm/DateTime.cpp b/js/src/vm/DateTime.cpp @@ -17,7 +17,6 @@ #include <algorithm> #include <cstdlib> #include <cstring> -#include <iterator> #include <string_view> #include <time.h> diff --git a/js/src/vm/ErrorObject.h b/js/src/vm/ErrorObject.h @@ -10,7 +10,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Maybe.h" -#include <iterator> #include <stdint.h> #include "jspubtd.h" diff --git a/js/src/vm/JSAtomUtils.cpp b/js/src/vm/JSAtomUtils.cpp @@ -14,7 +14,6 @@ #include "mozilla/RangedPtr.h" #include <charconv> -#include <iterator> #include <string.h> #include "jstypes.h" diff --git a/js/src/vm/JSContext.cpp b/js/src/vm/JSContext.cpp @@ -20,7 +20,6 @@ #ifdef ANDROID # include <android/log.h> # include <fstream> -# include <string> #endif // ANDROID #ifdef XP_WIN # include <processthreadsapi.h> diff --git a/js/src/vm/JSFunction.cpp b/js/src/vm/JSFunction.cpp @@ -12,7 +12,6 @@ #include "mozilla/Maybe.h" -#include <algorithm> #include <string.h> #include "jsapi.h" diff --git a/js/src/vm/JSScript.cpp b/js/src/vm/JSScript.cpp @@ -24,7 +24,6 @@ #include <algorithm> #include <new> #include <string.h> -#include <type_traits> #include <utility> #include "jstypes.h" diff --git a/js/src/vm/NativeObject.cpp b/js/src/vm/NativeObject.cpp @@ -10,7 +10,6 @@ #include "mozilla/Maybe.h" #include <algorithm> -#include <iterator> #include "gc/MaybeRooted.h" #include "gc/StableCellHasher.h" diff --git a/js/src/vm/Stack.cpp b/js/src/vm/Stack.cpp @@ -9,7 +9,6 @@ #include "mozilla/Maybe.h" // mozilla::Maybe #include <algorithm> // std::max -#include <iterator> // std::size #include <stddef.h> // size_t #include <stdint.h> // uint8_t, uint32_t diff --git a/js/src/vm/StringType.cpp b/js/src/vm/StringType.cpp @@ -18,7 +18,6 @@ #include "mozilla/Vector.h" #include <algorithm> // std::{all_of,copy_n,enable_if,is_const,move} -#include <iterator> // std::size #include <type_traits> // std::is_same, std::is_unsigned #include "jsfriendapi.h" diff --git a/js/src/vm/ToSource.cpp b/js/src/vm/ToSource.cpp @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" // MOZ_ASSERT #include "mozilla/FloatingPoint.h" // mozilla::IsNegativeZero -#include <iterator> // std::size #include <stdint.h> // uint32_t #include "builtin/Array.h" // ArrayToSource diff --git a/js/src/wasm/WasmAnyRef.h b/js/src/wasm/WasmAnyRef.h @@ -21,8 +21,6 @@ #include "mozilla/FloatingPoint.h" -#include <utility> - #include "js/HeapAPI.h" #include "js/RootingAPI.h" #include "js/TypeDecls.h" diff --git a/js/src/wasm/WasmBCDefs.h b/js/src/wasm/WasmBCDefs.h @@ -22,9 +22,6 @@ #ifndef wasm_wasm_baseline_defs_h #define wasm_wasm_baseline_defs_h -#include <algorithm> -#include <utility> - #include "jit/AtomicOp.h" #include "jit/IonTypes.h" #include "jit/JitAllocPolicy.h" diff --git a/js/src/wasm/WasmGcObject.cpp b/js/src/wasm/WasmGcObject.cpp @@ -6,8 +6,6 @@ #include "wasm/WasmGcObject-inl.h" -#include <algorithm> - #include "gc/Tracer.h" #include "js/CharacterEncoding.h" #include "js/friend/ErrorMessages.h" // js::GetErrorMessage, JSMSG_* diff --git a/js/src/wasm/WasmStubs.cpp b/js/src/wasm/WasmStubs.cpp @@ -19,7 +19,6 @@ #include "wasm/WasmStubs.h" #include <algorithm> -#include <iterator> #include <type_traits> #include "jit/ABIArgGenerator.h" diff --git a/js/src/wasm/WasmValType.h b/js/src/wasm/WasmValType.h @@ -21,8 +21,6 @@ #include "mozilla/Maybe.h" -#include <type_traits> - #include "jit/IonTypes.h" #include "wasm/WasmConstants.h" #include "wasm/WasmSerialize.h" diff --git a/js/src/wasm/WasmValidate.h b/js/src/wasm/WasmValidate.h @@ -19,8 +19,6 @@ #ifndef wasm_validate_h #define wasm_validate_h -#include <type_traits> - #include "js/Utility.h" #include "js/WasmFeatures.h" diff --git a/js/xpconnect/src/XPCException.cpp b/js/xpconnect/src/XPCException.cpp @@ -9,8 +9,6 @@ #include "xpcprivate.h" #include "nsError.h" -#include <iterator> - /***************************************************************************/ /* Quick and dirty mapping of well known result codes to strings. We only * call this when building an exception object, so iterating the short array