commit 5507f1c19ac185a4c250c0d1d7bda3786eb927a3 parent bd20806ec8008b55bb159f6daa7a084dd7bef737 Author: serge-sans-paille <sguelton@mozilla.com> Date: Sun, 16 Nov 2025 10:25:42 +0000 Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv Those are the remaining parts required before we land the new mhbt header inclusion linter Differential Revision: https://phabricator.services.mozilla.com/D270812 Diffstat:
106 files changed, 6 insertions(+), 124 deletions(-)
diff --git a/dom/ipc/MemMapSnapshot.h b/dom/ipc/MemMapSnapshot.h @@ -9,7 +9,6 @@ #include "ErrorList.h" #include "mozilla/Attributes.h" -#include "mozilla/Maybe.h" #include "mozilla/RangedPtr.h" #include "mozilla/Result.h" #include "mozilla/ipc/SharedMemoryMapping.h" diff --git a/dom/localstorage/ActorsParent.cpp b/dom/localstorage/ActorsParent.cpp @@ -36,7 +36,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/GeckoTrace.h" #include "mozilla/Logging.h" -#include "mozilla/MacroForEach.h" #include "mozilla/Maybe.h" #include "mozilla/Monitor.h" #include "mozilla/Mutex.h" diff --git a/dom/localstorage/LSValue.cpp b/dom/localstorage/LSValue.cpp @@ -7,6 +7,7 @@ #include "mozilla/dom/LSValue.h" #include "mozIStorageStatement.h" +#include "mozilla/Assertions.h" #include "mozilla/TextUtils.h" #include "mozilla/dom/SnappyUtils.h" #include "mozilla/fallible.h" diff --git a/dom/localstorage/LSValue.h b/dom/localstorage/LSValue.h @@ -11,7 +11,6 @@ #include "ErrorList.h" #include "SnappyUtils.h" -#include "mozilla/Assertions.h" #include "nsString.h" #include "nsStringFwd.h" #include "nsTStringRepr.h" diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp @@ -28,7 +28,6 @@ #include "mediasink/DecodedStream.h" #include "mediasink/VideoSink.h" #include "mozilla/Logging.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/Preferences.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/ProfilerMarkerTypes.h" diff --git a/dom/media/MediaTrackGraphImpl.h b/dom/media/MediaTrackGraphImpl.h @@ -15,7 +15,6 @@ #include "MediaEventSource.h" #include "MediaTrackGraph.h" #include "mozilla/Atomics.h" -#include "mozilla/Maybe.h" #include "mozilla/Monitor.h" #include "mozilla/TimeStamp.h" #include "mozilla/UniquePtr.h" diff --git a/dom/media/mediacontrol/tests/gtest/TestMediaKeysEventMac.mm b/dom/media/mediacontrol/tests/gtest/TestMediaKeysEventMac.mm @@ -11,7 +11,6 @@ #include "MediaHardwareKeysEventSourceMac.h" #include "MediaKeyListenerTest.h" #include "gtest/gtest.h" -#include "mozilla/Maybe.h" using namespace mozilla::dom; using namespace mozilla::widget; diff --git a/dom/media/mp4/DecoderData.h b/dom/media/mp4/DecoderData.h @@ -7,7 +7,6 @@ #include "MediaInfo.h" #include "MediaResult.h" -#include "mozilla/RefPtr.h" #include "mozilla/Result.h" #include "mp4parse.h" #include "nsString.h" diff --git a/dom/media/platforms/agnostic/bytestreams/H265.cpp b/dom/media/platforms/agnostic/bytestreams/H265.cpp @@ -16,7 +16,6 @@ #include "ByteWriter.h" #include "MediaData.h" #include "MediaInfo.h" -#include "mozilla/PodOperations.h" #include "mozilla/Span.h" #include "nsFmtString.h" diff --git a/dom/navigation/NavigationPrecommitController.h b/dom/navigation/NavigationPrecommitController.h @@ -8,7 +8,6 @@ #define DOM_NAVIGATIONPRECOMMITCONTROLLER_H_ #include "js/TypeDecls.h" -#include "mozilla/Attributes.h" #include "mozilla/ErrorResult.h" #include "mozilla/dom/BindingDeclarations.h" #include "nsCycleCollectionParticipant.h" diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp @@ -64,7 +64,6 @@ #include "mozilla/GeckoTrace.h" #include "mozilla/InitializedOnce.h" #include "mozilla/Logging.h" -#include "mozilla/MacroForEach.h" #include "mozilla/Maybe.h" #include "mozilla/Mutex.h" #include "mozilla/NotNull.h" @@ -80,7 +79,6 @@ #include "mozilla/StaticPtr.h" #include "mozilla/StorageOriginAttributes.h" #include "mozilla/SystemPrincipal.h" -#include "mozilla/TextUtils.h" #include "mozilla/TimeStamp.h" #include "mozilla/dom/FileSystemQuotaClientFactory.h" #include "mozilla/dom/FlippedOnce.h" diff --git a/dom/quota/QuotaManagerService.cpp b/dom/quota/QuotaManagerService.cpp @@ -23,7 +23,6 @@ #include "mozilla/Atomics.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/Hal.h" -#include "mozilla/MacroForEach.h" #include "mozilla/Maybe.h" #include "mozilla/OriginAttributes.h" #include "mozilla/RefPtr.h" diff --git a/dom/quota/nsIndexedDBProtocolHandler.cpp b/dom/quota/nsIndexedDBProtocolHandler.cpp @@ -10,7 +10,6 @@ #include <cstdint> #include "ErrorList.h" -#include "mozilla/Assertions.h" #include "nsIWeakReference.h" #include "nsStandardURL.h" #include "nsStringFwd.h" diff --git a/dom/script/AutoEntryScript.cpp b/dom/script/AutoEntryScript.cpp @@ -12,7 +12,6 @@ #include "js/ProfilingStack.h" #include "jsapi.h" #include "mozilla/Assertions.h" -#include "mozilla/Maybe.h" #include "nsCOMPtr.h" #include "nsContentUtils.h" #include "nsGlobalWindowInner.h" diff --git a/dom/script/ScriptLoadContext.h b/dom/script/ScriptLoadContext.h @@ -20,16 +20,12 @@ #include "mozilla/AlreadyAddRefed.h" #include "mozilla/Assertions.h" #include "mozilla/CORSMode.h" -#include "mozilla/LinkedList.h" -#include "mozilla/Maybe.h" -#include "mozilla/MaybeOneOf.h" #include "mozilla/Mutex.h" #include "mozilla/PreloaderBase.h" #include "mozilla/RefPtr.h" #include "mozilla/StaticPrefs_dom.h" #include "mozilla/TaskController.h" // mozilla::Task #include "mozilla/Utf8.h" // mozilla::Utf8Unit -#include "mozilla/Variant.h" #include "mozilla/dom/SRIMetadata.h" #include "mozilla/net/UrlClassifierCommon.h" #include "nsCOMPtr.h" diff --git a/dom/serviceworkers/ServiceWorkerRegistrar.cpp b/dom/serviceworkers/ServiceWorkerRegistrar.cpp @@ -12,7 +12,6 @@ #include "mozilla/CycleCollectedJSContext.h" #include "mozilla/ErrorNames.h" #include "mozilla/ModuleUtils.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/Services.h" #include "mozilla/StaticPrefs_dom.h" #include "mozilla/StaticPtr.h" diff --git a/dom/simpledb/SDBConnection.cpp b/dom/simpledb/SDBConnection.cpp @@ -21,8 +21,6 @@ #include "js/RootingAPI.h" #include "js/TypeDecls.h" #include "mozilla/Assertions.h" -#include "mozilla/MacroForEach.h" -#include "mozilla/Maybe.h" #include "mozilla/Preferences.h" #include "mozilla/RefPtr.h" #include "mozilla/dom/PBackgroundSDBConnection.h" diff --git a/dom/simpledb/SDBResults.cpp b/dom/simpledb/SDBResults.cpp @@ -13,7 +13,6 @@ #include "ErrorList.h" #include "js/RootingAPI.h" #include "js/TypeDecls.h" -#include "mozilla/Assertions.h" #include "mozilla/dom/TypedArray.h" #include "nsDebug.h" #include "nsError.h" diff --git a/dom/url/URLSearchParams.cpp b/dom/url/URLSearchParams.cpp @@ -17,7 +17,6 @@ #include "js/StructuredClone.h" #include "mozilla/ArrayIterator.h" #include "mozilla/ErrorResult.h" -#include "mozilla/MacroForEach.h" #include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/Record.h" #include "mozilla/dom/StructuredCloneHolder.h" diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp @@ -23,7 +23,6 @@ #include "mozilla/Encoding.h" #include "mozilla/LoadContext.h" #include "mozilla/Maybe.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/StaticPrefs_browser.h" #include "mozilla/UniquePtr.h" #include "mozilla/dom/ClientChannelHelper.h" diff --git a/dom/workers/WorkerError.cpp b/dom/workers/WorkerError.cpp @@ -27,7 +27,6 @@ #include "mozilla/ErrorResult.h" #include "mozilla/EventDispatcher.h" #include "mozilla/RefPtr.h" -#include "mozilla/Span.h" #include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/ErrorEvent.h" diff --git a/gfx/2d/DataSurfaceHelpers.cpp b/gfx/2d/DataSurfaceHelpers.cpp @@ -9,7 +9,6 @@ #include "2D.h" #include "DataSurfaceHelpers.h" #include "Logging.h" -#include "mozilla/MathAlgorithms.h" #include "Swizzle.h" #include "Tools.h" diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp @@ -33,7 +33,6 @@ #include "mozilla/ProcessPriorityManager.h" #include "mozilla/RemoteMediaManagerChild.h" #include "mozilla/RemoteMediaManagerParent.h" -#include "mozilla/ScopeExit.h" #include "mozilla/StaticPrefs_dom.h" #include "mozilla/StaticPrefs_media.h" #include "mozilla/TimeStamp.h" diff --git a/gfx/layers/SurfacePool.h b/gfx/layers/SurfacePool.h @@ -6,8 +6,6 @@ #ifndef mozilla_layers_SurfacePool_h #define mozilla_layers_SurfacePool_h -#include "mozilla/Maybe.h" - #include "GLTypes.h" #include "nsISupportsImpl.h" #include "nsRegion.h" diff --git a/gfx/layers/ipc/CompositorBridgeParent.cpp b/gfx/layers/ipc/CompositorBridgeParent.cpp @@ -58,7 +58,6 @@ #include "mozilla/webrender/RenderThread.h" #include "mozilla/media/MediaSystemResourceService.h" // for MediaSystemResourceService #include "mozilla/mozalloc.h" // for operator new, etc -#include "mozilla/PodOperations.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/ProfilerMarkers.h" #include "mozilla/glean/GfxMetrics.h" diff --git a/gfx/layers/wr/WebRenderBridgeParent.h b/gfx/layers/wr/WebRenderBridgeParent.h @@ -15,7 +15,6 @@ #include "mozilla/layers/CompositableTransactionParent.h" #include "mozilla/layers/CompositorVsyncSchedulerOwner.h" #include "mozilla/layers/PWebRenderBridgeParent.h" -#include "mozilla/HashTable.h" #include "mozilla/Maybe.h" #include "mozilla/UniquePtr.h" #include "mozilla/webrender/WebRenderTypes.h" diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp @@ -8,7 +8,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/FontPropertyTypes.h" #include "mozilla/gfx/2D.h" -#include "mozilla/IntegerRange.h" #include "mozilla/intl/Segmenter.h" #include "mozilla/StaticPrefs_gfx.h" #include "mozilla/ScopeExit.h" diff --git a/gfx/thebes/gfxFontEntry.cpp b/gfx/thebes/gfxFontEntry.cpp @@ -6,7 +6,6 @@ #include "gfxFontEntry.h" #include "mozilla/FontPropertyTypes.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/Logging.h" diff --git a/gfx/vr/gfxVR.h b/gfx/vr/gfxVR.h @@ -11,7 +11,6 @@ #include "nsTArray.h" #include "nsString.h" #include "nsCOMPtr.h" -#include "mozilla/RefPtr.h" #include "mozilla/gfx/2D.h" #include "mozilla/TiedFields.h" #include "mozilla/TimeStamp.h" diff --git a/image/Image.h b/image/Image.h @@ -7,7 +7,6 @@ #define mozilla_image_Image_h #include "mozilla/Attributes.h" -#include "mozilla/Maybe.h" #include "mozilla/MemoryReporting.h" #include "mozilla/ProfilerMarkers.h" #include "mozilla/SizeOfState.h" diff --git a/image/RasterImage.cpp b/image/RasterImage.cpp @@ -27,7 +27,6 @@ #include "gfxContext.h" #include "gfxPlatform.h" #include "mozilla/ClearOnShutdown.h" -#include "mozilla/Likely.h" #include "mozilla/RefPtr.h" #include "mozilla/SizeOfState.h" #include "mozilla/StaticPrefs_image.h" diff --git a/intl/components/src/DateTimeFormat.h b/intl/components/src/DateTimeFormat.h @@ -6,7 +6,6 @@ #include <functional> #include "unicode/udat.h" -#include "mozilla/Assertions.h" #include "mozilla/intl/ICU4CGlue.h" #include "mozilla/intl/ICUError.h" @@ -16,7 +15,6 @@ #include "mozilla/Span.h" #include "mozilla/Try.h" #include "mozilla/UniquePtr.h" -#include "mozilla/Utf8.h" #include "mozilla/Vector.h" /* diff --git a/intl/components/src/NumberFormat.h b/intl/components/src/NumberFormat.h @@ -10,7 +10,6 @@ #include "mozilla/Maybe.h" #include "mozilla/PodOperations.h" #include "mozilla/Result.h" -#include "mozilla/Utf8.h" #include "mozilla/intl/ICUError.h" #include "mozilla/intl/NumberPart.h" diff --git a/intl/components/src/PluralRules.cpp b/intl/components/src/PluralRules.cpp @@ -7,7 +7,6 @@ #include "mozilla/intl/ICU4CGlue.h" #include "mozilla/intl/NumberFormat.h" #include "mozilla/intl/NumberRangeFormat.h" -#include "mozilla/PodOperations.h" #include "mozilla/Span.h" #include "ScopedICUObject.h" diff --git a/ipc/chromium/src/chrome/common/ipc_channel_posix.cc b/ipc/chromium/src/chrome/common/ipc_channel_posix.cc @@ -38,7 +38,6 @@ #include "chrome/common/ipc_message_utils.h" #include "mozilla/ipc/Endpoint.h" #include "mozilla/ipc/ProtocolUtils.h" -#include "mozilla/Atomics.h" #include "mozilla/StaticMutex.h" #include "mozilla/UniquePtr.h" diff --git a/ipc/chromium/src/chrome/common/ipc_channel_win.cc b/ipc/chromium/src/chrome/common/ipc_channel_win.cc @@ -22,7 +22,6 @@ #include "chrome/common/ipc_channel_utils.h" #include "chrome/common/ipc_message_utils.h" #include "mozilla/ipc/ProtocolUtils.h" -#include "mozilla/Atomics.h" #include "mozilla/LateWriteChecks.h" #include "mozilla/RandomNum.h" #include "nsThreadUtils.h" diff --git a/ipc/glue/IdleSchedulerParent.h b/ipc/glue/IdleSchedulerParent.h @@ -7,7 +7,6 @@ #ifndef mozilla_ipc_IdleSchedulerParent_h__ #define mozilla_ipc_IdleSchedulerParent_h__ -#include "mozilla/Assertions.h" #include "mozilla/LinkedList.h" #include "mozilla/ipc/PIdleSchedulerParent.h" #include "mozilla/ipc/SharedMemoryMapping.h" diff --git a/ipc/glue/MessageChannel.cpp b/ipc/glue/MessageChannel.cpp @@ -15,7 +15,6 @@ #include "base/waitable_event.h" #include "mozilla/Assertions.h" #include "mozilla/CycleCollectedJSContext.h" -#include "mozilla/Fuzzing.h" #include "mozilla/FlowMarkers.h" #include "mozilla/IntentionalCrash.h" #include "mozilla/Logging.h" diff --git a/ipc/glue/ProcessUtils.h b/ipc/glue/ProcessUtils.h @@ -13,7 +13,6 @@ #include "mozilla/ipc/FileDescriptor.h" #include "mozilla/ipc/SharedMemoryHandle.h" #include "mozilla/ipc/SharedMemoryMapping.h" -#include "mozilla/Maybe.h" #include "mozilla/Preferences.h" #include "nsXULAppAPI.h" diff --git a/ipc/glue/SerializedStructuredCloneBuffer.h b/ipc/glue/SerializedStructuredCloneBuffer.h @@ -13,8 +13,6 @@ #include "chrome/common/ipc_message_utils.h" #include "js/AllocPolicy.h" #include "js/StructuredClone.h" -#include "mozilla/Assertions.h" -#include "mozilla/BufferList.h" #include "mozilla/mozalloc.h" class PickleIterator; diff --git a/js/loader/ScriptLoadRequest.h b/js/loader/ScriptLoadRequest.h @@ -15,12 +15,10 @@ #include "mozilla/dom/CacheExpirationTime.h" #include "mozilla/dom/SRIMetadata.h" #include "mozilla/LinkedList.h" -#include "mozilla/Maybe.h" #include "mozilla/PreloaderBase.h" #include "mozilla/RefPtr.h" #include "mozilla/SharedSubResourceCache.h" // mozilla::SubResourceNetworkMetadataHolder #include "mozilla/StaticPrefs_dom.h" -#include "mozilla/Variant.h" #include "nsCycleCollectionParticipant.h" #include "nsIGlobalObject.h" #include "LoadedScript.h" diff --git a/js/src/builtin/intl/Segmenter.cpp b/js/src/builtin/intl/Segmenter.cpp @@ -9,7 +9,6 @@ #include "builtin/intl/Segmenter.h" #include "mozilla/Assertions.h" -#include "mozilla/IntegerTypeTraits.h" #include "mozilla/UniquePtr.h" #include "jspubtd.h" diff --git a/js/src/builtin/temporal/TimeZone.cpp b/js/src/builtin/temporal/TimeZone.cpp @@ -10,7 +10,6 @@ #include "mozilla/intl/TimeZone.h" #include "mozilla/Likely.h" #include "mozilla/Maybe.h" -#include "mozilla/Range.h" #include "mozilla/Span.h" #include "mozilla/UniquePtr.h" diff --git a/js/src/debugger/DebuggerMemory.cpp b/js/src/debugger/DebuggerMemory.cpp @@ -6,8 +6,6 @@ #include "debugger/DebuggerMemory.h" -#include "mozilla/Maybe.h" - #include <stdlib.h> #include "jsapi.h" diff --git a/js/src/ds/Bitmap.h b/js/src/ds/Bitmap.h @@ -9,7 +9,6 @@ #include "mozilla/Array.h" #include "mozilla/Assertions.h" -#include "mozilla/Atomics.h" #include "mozilla/Attributes.h" #include <algorithm> diff --git a/js/src/gc/Nursery.cpp b/js/src/gc/Nursery.cpp @@ -9,7 +9,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/IntegerPrintfMacros.h" -#include "mozilla/Maybe.h" #include "mozilla/Sprintf.h" #include "mozilla/TimeStamp.h" diff --git a/js/src/jit/JitcodeMap.cpp b/js/src/jit/JitcodeMap.cpp @@ -7,7 +7,6 @@ #include "jit/JitcodeMap.h" #include "mozilla/ArrayUtils.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/Maybe.h" #include "gc/Marking.h" diff --git a/js/src/jit/mips64/Simulator-mips64.cpp b/js/src/jit/mips64/Simulator-mips64.cpp @@ -31,7 +31,6 @@ #include "mozilla/Casting.h" #include "mozilla/IntegerPrintfMacros.h" -#include "mozilla/Likely.h" #include <float.h> #include <limits> diff --git a/js/src/jit/riscv64/Simulator-riscv64.cpp b/js/src/jit/riscv64/Simulator-riscv64.cpp @@ -30,9 +30,7 @@ # include "jit/riscv64/Simulator-riscv64.h" # include "mozilla/Casting.h" -# include "mozilla/FloatingPoint.h" # include "mozilla/IntegerPrintfMacros.h" -# include "mozilla/Likely.h" # include <cinttypes> # include <float.h> diff --git a/js/src/jsapi.h b/js/src/jsapi.h @@ -11,9 +11,6 @@ #include "mozilla/FloatingPoint.h" #include "mozilla/Maybe.h" -#include "mozilla/MemoryReporting.h" -#include "mozilla/RangedPtr.h" -#include "mozilla/RefPtr.h" #include "mozilla/TimeStamp.h" #include "mozilla/Variant.h" diff --git a/js/src/threading/Mutex.h b/js/src/threading/Mutex.h @@ -8,7 +8,6 @@ #define threading_Mutex_h #include "mozilla/Assertions.h" -#include "mozilla/Maybe.h" #include "mozilla/PlatformMutex.h" #include "mozilla/ThreadLocal.h" diff --git a/js/src/vm/ErrorReporting.cpp b/js/src/vm/ErrorReporting.cpp @@ -6,6 +6,8 @@ #include "vm/ErrorReporting.h" +#include "mozilla/PodOperations.h" + #include <stdarg.h> #include <utility> diff --git a/js/src/wasm/WasmCode.h b/js/src/wasm/WasmCode.h @@ -27,7 +27,6 @@ #include "mozilla/EnumeratedArray.h" #include "mozilla/Maybe.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/PodOperations.h" #include "mozilla/RefPtr.h" #include "mozilla/ScopeExit.h" #include "mozilla/UniquePtr.h" diff --git a/js/src/wasm/WasmCodegenTypes.cpp b/js/src/wasm/WasmCodegenTypes.cpp @@ -18,6 +18,7 @@ #include "wasm/WasmCodegenTypes.h" +#include "mozilla/PodOperations.h" #include "wasm/WasmExprType.h" #include "wasm/WasmStubs.h" #include "wasm/WasmSummarizeInsn.h" diff --git a/js/xpconnect/loader/URLPreloader.h b/js/xpconnect/loader/URLPreloader.h @@ -13,7 +13,6 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/Monitor.h" #include "mozilla/Omnijar.h" -#include "mozilla/Range.h" #include "mozilla/Result.h" #include "nsClassHashtable.h" #include "nsHashKeys.h" diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp @@ -6,7 +6,6 @@ /* Per JSContext object */ -#include "mozilla/MemoryReporting.h" #include "mozilla/UniquePtr.h" #include "xpcprivate.h" diff --git a/layout/base/AnchorPositioningUtils.h b/layout/base/AnchorPositioningUtils.h @@ -8,7 +8,6 @@ #define AnchorPositioningUtils_h__ #include "WritingModes.h" -#include "mozilla/EnumSet.h" #include "mozilla/Maybe.h" #include "nsRect.h" #include "nsTHashMap.h" diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp @@ -23,7 +23,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/ErrorResult.h" #include "mozilla/Likely.h" -#include "mozilla/LinkedList.h" #include "mozilla/ManualNAC.h" #include "mozilla/PresShell.h" #include "mozilla/PresShellInlines.h" diff --git a/layout/generic/ScrollContainerFrame.h b/layout/generic/ScrollContainerFrame.h @@ -14,7 +14,6 @@ #include "mozilla/Attributes.h" #include "mozilla/ScrollOrigin.h" #include "mozilla/ScrollTypes.h" -#include "mozilla/TypedEnumBits.h" #include "mozilla/dom/WindowBinding.h" // for mozilla::dom::ScrollBehavior #include "mozilla/layout/ScrollAnchorContainer.h" #include "nsContainerFrame.h" diff --git a/layout/painting/nsCSSRendering.cpp b/layout/painting/nsCSSRendering.cpp @@ -24,7 +24,6 @@ #include "gfxUtils.h" #include "imgIContainer.h" #include "mozilla/ComputedStyle.h" -#include "mozilla/HashFunctions.h" #include "mozilla/PresShell.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/SVGImageContext.h" diff --git a/layout/painting/nsDisplayList.cpp b/layout/painting/nsDisplayList.cpp @@ -35,7 +35,6 @@ #include "mozilla/EffectCompositor.h" #include "mozilla/EffectSet.h" #include "mozilla/EventStateManager.h" -#include "mozilla/HashTable.h" #include "mozilla/Likely.h" #include "mozilla/LookAndFeel.h" #include "mozilla/OperatorNewExtensions.h" diff --git a/layout/style/ServoStyleConstsForwards.h b/layout/style/ServoStyleConstsForwards.h @@ -21,11 +21,9 @@ # include "Units.h" # include "mozilla/AtomArray.h" # include "mozilla/CORSMode.h" -# include "mozilla/IntegerRange.h" # include "mozilla/MemoryReporting.h" # include "mozilla/ServoBindingTypes.h" # include "mozilla/ServoTypes.h" -# include "mozilla/Span.h" # include "mozilla/gfx/Types.h" # include "mozilla/image/Resolution.h" # include "nsColor.h" diff --git a/layout/style/ServoStyleConstsInlines.h b/layout/style/ServoStyleConstsInlines.h @@ -15,6 +15,7 @@ #include "MainThreadUtils.h" #include "mozilla/AspectRatio.h" #include "mozilla/EndianUtils.h" +#include "mozilla/IntegerRange.h" #include "mozilla/ServoStyleConsts.h" #include "mozilla/URLExtraData.h" #include "mozilla/dom/WorkerCommon.h" diff --git a/layout/style/StyleAnimationValue.cpp b/layout/style/StyleAnimationValue.cpp @@ -13,7 +13,6 @@ #include "gfxQuaternion.h" #include "mozilla/ComputedStyle.h" #include "mozilla/ComputedStyleInlines.h" -#include "mozilla/Likely.h" #include "mozilla/PresShell.h" #include "mozilla/PresShellInlines.h" #include "mozilla/ServoBindings.h" // StyleLockedDeclarationBlock diff --git a/layout/style/nsCSSValue.cpp b/layout/style/nsCSSValue.cpp @@ -12,7 +12,6 @@ #include "imgRequestProxy.h" #include "mozilla/CORSMode.h" #include "mozilla/FontPropertyTypes.h" -#include "mozilla/Likely.h" #include "mozilla/ServoBindings.h" #include "mozilla/ServoStyleSet.h" #include "mozilla/ServoTypes.h" diff --git a/media/webrtc/signaling/gtest/jsep_session_unittest.cpp b/media/webrtc/signaling/gtest/jsep_session_unittest.cpp @@ -11,7 +11,6 @@ #include "ssl.h" #include "mozilla/Preferences.h" -#include "mozilla/RefPtr.h" #define GTEST_HAS_RTTI 0 #include "gmock/gmock.h" diff --git a/memory/build/Globals.h b/memory/build/Globals.h @@ -11,7 +11,6 @@ // or the page size. Page size isn't always known at compile time so some // values defined here may be determined at runtime. -#include "mozilla/Assertions.h" #include "mozilla/Literals.h" #include "mozilla/MathAlgorithms.h" diff --git a/mfbt/tests/gtest/TestTainting.cpp b/mfbt/tests/gtest/TestTainting.cpp @@ -8,7 +8,6 @@ #include <math.h> #include "mozilla/Array.h" -#include "mozilla/Assertions.h" #include "mozilla/Tainting.h" #include "nsTHashtable.h" #include "nsHashKeys.h" diff --git a/modules/libpref/SharedPrefMap.h b/modules/libpref/SharedPrefMap.h @@ -7,7 +7,6 @@ #ifndef dom_ipc_SharedPrefMap_h #define dom_ipc_SharedPrefMap_h -#include "mozilla/HashFunctions.h" #include "mozilla/Preferences.h" #include "mozilla/Result.h" #include "mozilla/dom/ipc/StringTable.h" diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp @@ -44,7 +44,6 @@ #include "mozilla/StaticPrefs_network.h" #include "mozilla/StaticPtr.h" #include "mozilla/SyncRunnable.h" -#include "mozilla/TextUtils.h" using namespace mozilla; using namespace mozilla::net; diff --git a/netwerk/dns/nsEffectiveTLDService.cpp b/netwerk/dns/nsEffectiveTLDService.cpp @@ -10,10 +10,7 @@ #include "mozilla/Components.h" #include "mozilla/ClearOnShutdown.h" -#include "mozilla/HashFunctions.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/ResultExtensions.h" -#include "mozilla/TextUtils.h" #include "MainThreadUtils.h" #include "nsContentUtils.h" diff --git a/netwerk/dns/nsIDNService.cpp b/netwerk/dns/nsIDNService.cpp @@ -17,7 +17,6 @@ #include "harfbuzz/hb.h" #include "mozilla/Casting.h" #include "mozilla/StaticPrefs_network.h" -#include "mozilla/TextUtils.h" #include "mozilla/intl/UnicodeProperties.h" #include "mozilla/intl/UnicodeScriptCodes.h" #include "nsNetUtil.h" diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp @@ -117,7 +117,6 @@ #include "mozilla/extensions/StreamFilterParent.h" #include "mozilla/net/Predictor.h" #include "mozilla/net/SFVService.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/NullPrincipal.h" #include "CacheControlParser.h" #include "nsMixedContentBlocker.h" diff --git a/parser/html/nsHtml5Portability.cpp b/parser/html/nsHtml5Portability.cpp @@ -7,7 +7,6 @@ #include "nsAtom.h" #include "nsHtml5TreeBuilder.h" #include "nsString.h" -#include "mozilla/CheckedInt.h" nsAtom* nsHtml5Portability::newLocalNameFromBuffer(char16_t* buf, int32_t length, diff --git a/parser/html/nsHtml5TreeBuilder.h b/parser/html/nsHtml5TreeBuilder.h @@ -33,7 +33,6 @@ #include "jArray.h" #include "mozilla/ImportScanner.h" -#include "mozilla/Likely.h" #include "nsAHtml5TreeBuilderState.h" #include "nsAtom.h" #include "nsContentUtils.h" diff --git a/security/certverifier/NSSCertDBTrustDomain.cpp b/security/certverifier/NSSCertDBTrustDomain.cpp @@ -20,7 +20,6 @@ #include "certdb.h" #include "mozilla/AppShutdown.h" #include "mozilla/Assertions.h" -#include "mozilla/Casting.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/Logging.h" #include "mozilla/Services.h" diff --git a/security/manager/ssl/nsNSSCertHelper.cpp b/security/manager/ssl/nsNSSCertHelper.cpp @@ -6,7 +6,6 @@ #include "ScopedNSSTypes.h" #include "mozilla/Assertions.h" -#include "mozilla/Casting.h" #include "mozilla/Sprintf.h" #include "mozilla/Utf8.h" #include "mozilla/net/DNS.h" diff --git a/security/manager/ssl/nsNSSCertificate.cpp b/security/manager/ssl/nsNSSCertificate.cpp @@ -12,10 +12,8 @@ #include "certdb.h" #include "ipc/IPCMessageUtils.h" #include "ipc/IPCMessageUtilsSpecializations.h" -#include "mozilla/Assertions.h" #include "mozilla/Base64.h" #include "mozilla/Casting.h" -#include "mozilla/NotNull.h" #include "mozilla/Span.h" #include "mozilla/ipc/TransportSecurityInfoUtils.h" #include "mozilla/net/DNS.h" diff --git a/security/manager/ssl/nsNSSComponent.cpp b/security/manager/ssl/nsNSSComponent.cpp @@ -21,10 +21,8 @@ #include "mozilla/Atomics.h" #include "mozilla/Assertions.h" #include "mozilla/Base64.h" -#include "mozilla/Casting.h" #include "mozilla/EndianUtils.h" #include "mozilla/FilePreferences.h" -#include "mozilla/PodOperations.h" #include "mozilla/Preferences.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/ProfilerMarkers.h" diff --git a/security/sandbox/linux/Sandbox.cpp b/security/sandbox/linux/Sandbox.cpp @@ -39,7 +39,6 @@ #include "mozilla/Array.h" #include "mozilla/Atomics.h" #include "mozilla/Attributes.h" -#include "mozilla/Range.h" #include "mozilla/SandboxInfo.h" #include "mozilla/StackWalk.h" #include "mozilla/UniquePtr.h" diff --git a/startupcache/test/TestStartupCache.cpp b/startupcache/test/TestStartupCache.cpp @@ -20,7 +20,6 @@ #include "prio.h" #include "prprf.h" #include "mozilla/gtest/MozAssertions.h" -#include "mozilla/Maybe.h" #include "mozilla/Printf.h" #include "mozilla/UniquePtr.h" #include "mozilla/UniquePtrExtensions.h" diff --git a/testing/gtest/mozilla/gmock-custom/gmock-matchers.h b/testing/gtest/mozilla/gmock-custom/gmock-matchers.h @@ -35,7 +35,6 @@ #define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_ #include "nsTArray.h" -#include "mozilla/RefPtr.h" #include "mozilla/media/MediaUtils.h" namespace testing { diff --git a/toolkit/components/antitracking/ContentBlockingLog.cpp b/toolkit/components/antitracking/ContentBlockingLog.cpp @@ -17,9 +17,7 @@ #include "nsTArray.h" #include "mozilla/BasePrincipal.h" #include "mozilla/ClearOnShutdown.h" -#include "mozilla/HashFunctions.h" #include "mozilla/Preferences.h" -#include "mozilla/RandomNum.h" #include "mozilla/ReverseIterator.h" #include "mozilla/StaticPrefs_browser.h" #include "mozilla/StaticPrefs_privacy.h" diff --git a/toolkit/components/backgroundhangmonitor/HangAnnotations.h b/toolkit/components/backgroundhangmonitor/HangAnnotations.h @@ -11,7 +11,6 @@ #include "ipc/IPCMessageUtilsSpecializations.h" #include "mozilla/HangTypes.h" -#include "mozilla/MemoryReporting.h" #include "mozilla/Mutex.h" #include "nsString.h" #include "nsTArray.h" diff --git a/toolkit/components/extensions/MatchPattern.h b/toolkit/components/extensions/MatchPattern.h @@ -15,7 +15,6 @@ #include "jspubtd.h" #include "mozilla/ClearOnShutdown.h" -#include "mozilla/Likely.h" #include "mozilla/Maybe.h" #include "nsCOMPtr.h" #include "nsCycleCollectionParticipant.h" diff --git a/toolkit/components/glean/tests/gtest/TestFog.cpp b/toolkit/components/glean/tests/gtest/TestFog.cpp @@ -9,7 +9,6 @@ #include "mozilla/glean/GleanPings.h" #include "mozilla/glean/fog_ffi_generated.h" #include "mozilla/Maybe.h" -#include "mozilla/ResultVariant.h" #include "mozilla/TimeStamp.h" #include "../../bindings/private/Common.h" diff --git a/toolkit/components/ml/backends/llama/LlamaBackend.cpp b/toolkit/components/ml/backends/llama/LlamaBackend.cpp @@ -10,7 +10,6 @@ #include <cstddef> #include <functional> -#include "mozilla/ResultVariant.h" #include "mozilla/HashTable.h" #include "nsIFileStreams.h" #include "nsTArray.h" diff --git a/toolkit/components/ml/backends/llama/LlamaBackend.h b/toolkit/components/ml/backends/llama/LlamaBackend.h @@ -13,6 +13,7 @@ #include "ggml-cpu.h" #include "mozilla/dom/LlamaRunnerBinding.h" #include "mozilla/Result.h" +#include "mozilla/ResultVariant.h" #include "mozilla/UniquePtr.h" namespace mozilla::llama { diff --git a/toolkit/components/ml/backends/llama/LlamaRunner.h b/toolkit/components/ml/backends/llama/LlamaRunner.h @@ -21,7 +21,6 @@ #include "mozilla/llama/LlamaBackend.h" #include "prsystem.h" -#include "mozilla/Casting.h" #include "mozilla/SPSCQueue.h" #include "mozilla/Array.h" #include <cstdint> diff --git a/toolkit/components/remote/nsDBusRemoteClient.h b/toolkit/components/remote/nsDBusRemoteClient.h @@ -12,7 +12,6 @@ #endif #include "nsRemoteClient.h" #include "mozilla/DBusHelpers.h" -#include "mozilla/RefPtr.h" #include "nsString.h" #include "nscore.h" diff --git a/toolkit/components/resistfingerprinting/nsRFPService.cpp b/toolkit/components/resistfingerprinting/nsRFPService.cpp @@ -24,13 +24,11 @@ #include "mozilla/ArrayIterator.h" #include "mozilla/Assertions.h" #include "mozilla/Atomics.h" -#include "mozilla/Casting.h" #include "mozilla/Components.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/ContentBlockingNotifier.h" #include "mozilla/glean/ResistfingerprintingMetrics.h" #include "mozilla/HashFunctions.h" -#include "mozilla/HelperMacros.h" #include "mozilla/Likely.h" #include "mozilla/Logging.h" #include "mozilla/LookAndFeel.h" diff --git a/toolkit/components/sessionstore/BrowserSessionStore.cpp b/toolkit/components/sessionstore/BrowserSessionStore.cpp @@ -10,9 +10,7 @@ #include <functional> #include "mozilla/AlreadyAddRefed.h" -#include "mozilla/Assertions.h" #include "mozilla/ClearOnShutdown.h" -#include "mozilla/IntegerRange.h" #include "mozilla/RefPtr.h" #include "mozilla/StaticPtr.h" diff --git a/toolkit/components/sessionstore/SessionStoreFormData.cpp b/toolkit/components/sessionstore/SessionStoreFormData.cpp @@ -6,7 +6,6 @@ #include "mozilla/dom/SessionStoreFormData.h" -#include "mozilla/Assertions.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/BrowserSessionStoreBinding.h" #include "mozilla/dom/BrowsingContext.h" diff --git a/toolkit/components/sessionstore/SessionStoreParent.cpp b/toolkit/components/sessionstore/SessionStoreParent.cpp @@ -7,7 +7,6 @@ #include "mozilla/dom/SessionStoreParent.h" #include "mozilla/AlreadyAddRefed.h" -#include "mozilla/Assertions.h" #include "mozilla/Maybe.h" #include "mozilla/RefPtr.h" #include "mozilla/dom/BrowserParent.h" diff --git a/toolkit/components/sessionstore/SessionStoreScrollData.cpp b/toolkit/components/sessionstore/SessionStoreScrollData.cpp @@ -9,7 +9,6 @@ #include "js/PropertyAndElement.h" #include "js/TypeDecls.h" -#include "mozilla/Assertions.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/BrowserSessionStoreBinding.h" #include "mozilla/dom/BrowsingContext.h" diff --git a/toolkit/components/telemetry/core/Telemetry.cpp b/toolkit/components/telemetry/core/Telemetry.cpp @@ -34,7 +34,6 @@ #endif #include "mozilla/Components.h" #include "mozilla/DataMutex.h" -#include "mozilla/FStream.h" #include "mozilla/IOInterposer.h" #include "mozilla/Likely.h" #include "mozilla/MemoryReporting.h" diff --git a/toolkit/library/nsDllMain.cpp b/toolkit/library/nsDllMain.cpp @@ -5,7 +5,6 @@ #include <windows.h> #include "nsToolkit.h" -#include "mozilla/Assertions.h" #if defined(__GNUC__) // If DllMain gets name mangled, it won't be seen. diff --git a/toolkit/mozapps/defaultagent/Policy.cpp b/toolkit/mozapps/defaultagent/Policy.cpp @@ -15,7 +15,6 @@ #include "UtfConvert.h" #include "json/json.h" -#include "mozilla/HelperMacros.h" #include "mozilla/WinHeaderOnlyUtils.h" // There is little logging or error handling in this file, because the file and diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp @@ -18,8 +18,6 @@ #include "mozilla/IOInterposer.h" #include "mozilla/ipc/UtilityProcessChild.h" #include "mozilla/Likely.h" -#include "mozilla/MemoryChecking.h" -#include "mozilla/Poison.h" #include "mozilla/Preferences.h" #include "mozilla/PreferenceSheet.h" #include "mozilla/Printf.h" diff --git a/tools/profiler/public/GeckoProfiler.h b/tools/profiler/public/GeckoProfiler.h @@ -105,7 +105,6 @@ static inline void profiler_record_wakeup_count( #else // !MOZ_GECKO_PROFILER # include "js/ProfilingStack.h" -# include "mozilla/Assertions.h" # include "mozilla/Attributes.h" # include "mozilla/BaseProfilerRAIIMacro.h" # include "mozilla/Maybe.h" diff --git a/tools/profiler/public/ProfilerLabels.h b/tools/profiler/public/ProfilerLabels.h @@ -18,7 +18,6 @@ #include "js/ProfilingCategory.h" #include "js/ProfilingStack.h" #include "js/RootingAPI.h" -#include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/BaseProfilerRAIIMacro.h" #include "mozilla/Maybe.h" diff --git a/uriloader/preload/PreloadService.cpp b/uriloader/preload/PreloadService.cpp @@ -9,7 +9,6 @@ #include "PreloaderBase.h" #include "mozilla/Assertions.h" #include "mozilla/AsyncEventDispatcher.h" -#include "mozilla/Maybe.h" #include "mozilla/dom/FetchPriority.h" #include "mozilla/dom/HTMLLinkElement.h" #include "mozilla/dom/ScriptLoader.h" diff --git a/view/nsView.cpp b/view/nsView.cpp @@ -7,9 +7,7 @@ #include "nsDeviceContext.h" #include "mozilla/BasicEvents.h" -#include "mozilla/DebugOnly.h" #include "mozilla/IntegerPrintfMacros.h" -#include "mozilla/Likely.h" #include "mozilla/Poison.h" #include "mozilla/PresShell.h" #include "mozilla/StaticPrefs_layout.h" diff --git a/widget/ClipboardContentAnalysisParent.cpp b/widget/ClipboardContentAnalysisParent.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/ContentParent.h" #include "mozilla/dom/WindowContext.h" #include "mozilla/dom/WindowGlobalParent.h" -#include "mozilla/Maybe.h" #include "mozilla/MozPromise.h" #include "nsBaseClipboard.h" #include "nsIClipboard.h" diff --git a/xpcom/base/MacStringHelpers.mm b/xpcom/base/MacStringHelpers.mm @@ -7,7 +7,6 @@ #include "MacStringHelpers.h" #include "nsObjCExceptions.h" -#include "mozilla/IntegerTypeTraits.h" #include <limits> namespace mozilla { diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp @@ -30,7 +30,6 @@ #include "nsThread.h" #include "VRProcessManager.h" #include "mozilla/MemoryReportingProcess.h" -#include "mozilla/PodOperations.h" #include "mozilla/Preferences.h" #include "mozilla/RDDProcessManager.h" #include "mozilla/Services.h"