commit 55d1ae9abe55df6c23e20945dde90edd2e6443f9 parent 30150bc1117ee8ffd7d3fe77236082322c5b1a85 Author: serge-sans-paille <sguelton@mozilla.com> Date: Tue, 18 Nov 2025 16:32:01 +0000 Bug 1999712 - Remove unused STL header inclusions in toolkit/** r=application-update-reviewers,core-sessionstore-reviewers,toolkit-telemetry-reviewers,bytesized,farre Differential Revision: https://phabricator.services.mozilla.com/D272283 Diffstat:
22 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/toolkit/components/backgroundhangmonitor/HangAnnotations.cpp b/toolkit/components/backgroundhangmonitor/HangAnnotations.cpp @@ -6,8 +6,6 @@ #include "mozilla/HangAnnotations.h" -#include <vector> - #include "MainThreadUtils.h" #include "mozilla/DebugOnly.h" #include "nsXULAppAPI.h" diff --git a/toolkit/components/backgroundhangmonitor/ThreadStackHelper.cpp b/toolkit/components/backgroundhangmonitor/ThreadStackHelper.cpp @@ -33,7 +33,6 @@ #endif #include <string.h> -#include <vector> #include <cstdlib> #ifdef XP_LINUX diff --git a/toolkit/components/contentanalysis/ContentAnalysis.h b/toolkit/components/contentanalysis/ContentAnalysis.h @@ -24,7 +24,6 @@ #include <atomic> #include <regex> -#include <string> #ifdef XP_WIN # include <windows.h> diff --git a/toolkit/components/contentanalysis/content_analysis/sdk/analysis.pb.h b/toolkit/components/contentanalysis/content_analysis/sdk/analysis.pb.h @@ -4,7 +4,6 @@ #ifndef GOOGLE_PROTOBUF_INCLUDED_analysis_2eproto #define GOOGLE_PROTOBUF_INCLUDED_analysis_2eproto -#include <limits> #include <string> #include <google/protobuf/port_def.inc> diff --git a/toolkit/components/gecko-trace/tests/gtest/TestGeckoTraceAPI.cpp b/toolkit/components/gecko-trace/tests/gtest/TestGeckoTraceAPI.cpp @@ -1,4 +1,3 @@ -#include <memory> #include "gtest/gtest.h" diff --git a/toolkit/components/ml/MLUtils.cpp b/toolkit/components/ml/MLUtils.cpp @@ -6,7 +6,6 @@ #include "MLUtils.h" -#include <algorithm> #include <cmath> #include "prsystem.h" #include <sys/types.h> diff --git a/toolkit/components/places/History.h b/toolkit/components/places/History.h @@ -7,8 +7,6 @@ #ifndef mozilla_places_History_h_ #define mozilla_places_History_h_ -#include <utility> - #include "Database.h" #include "mozIAsyncHistory.h" #include "mozIStorageConnection.h" diff --git a/toolkit/components/places/nsFaviconService.h b/toolkit/components/places/nsFaviconService.h @@ -6,8 +6,6 @@ #ifndef nsFaviconService_h_ #define nsFaviconService_h_ -#include <utility> - #include "Database.h" #include "FaviconHelpers.h" #include "imgITools.h" diff --git a/toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h b/toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h @@ -4,7 +4,6 @@ #ifndef GOOGLE_PROTOBUF_INCLUDED_csd_2eproto #define GOOGLE_PROTOBUF_INCLUDED_csd_2eproto -#include <limits> #include <string> #include <google/protobuf/port_def.inc> diff --git a/toolkit/components/resistfingerprinting/nsRFPService.cpp b/toolkit/components/resistfingerprinting/nsRFPService.cpp @@ -13,7 +13,6 @@ #include <cstring> #include <ctime> #include <new> -#include <type_traits> #include <utility> #include <mutex> diff --git a/toolkit/components/resistfingerprinting/nsRFPService.h b/toolkit/components/resistfingerprinting/nsRFPService.h @@ -7,7 +7,6 @@ #define __nsRFPService_h__ #include <cstdint> -#include <tuple> #include <bitset> #include "ErrorList.h" #include "PLDHashTable.h" diff --git a/toolkit/components/sessionstore/BrowserSessionStore.cpp b/toolkit/components/sessionstore/BrowserSessionStore.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/dom/BrowserSessionStore.h" -#include <algorithm> #include <cstdint> #include <functional> diff --git a/toolkit/components/sessionstore/SessionStoreScrollData.cpp b/toolkit/components/sessionstore/SessionStoreScrollData.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/dom/SessionStoreScrollData.h" -#include <utility> #include "js/PropertyAndElement.h" #include "js/TypeDecls.h" diff --git a/toolkit/components/telemetry/core/Telemetry.cpp b/toolkit/components/telemetry/core/Telemetry.cpp @@ -6,7 +6,6 @@ #include "Telemetry.h" -#include <algorithm> #include <prio.h> #include <prproces.h> #if defined(XP_UNIX) && !defined(XP_DARWIN) diff --git a/toolkit/components/uniffi-js/FfiValue.h b/toolkit/components/uniffi-js/FfiValue.h @@ -8,7 +8,6 @@ #define mozilla_UniFFIFfiConverter_h #include <limits> -#include <type_traits> #include "nsString.h" #include "mozilla/dom/PrimitiveConversions.h" #include "mozilla/dom/TypedArray.h" diff --git a/toolkit/crashreporter/linux_utils.h b/toolkit/crashreporter/linux_utils.h @@ -8,8 +8,6 @@ #include <stdio.h> #include <stdint.h> -#include <string> -#include <vector> bool ElfFileSoVersion(const char* mapping_name, uint32_t* version); diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -96,7 +96,6 @@ # if defined(MOZ_OXIDIZED_BREAKPAD) # include "mozilla/toolkit/crashreporter/rust_minidump_writer_linux_ffi_generated.h" -# include <unordered_map> # include <mutex> # include <sys/auxv.h> # endif // defined(MOZ_OXIDIZED_BREAKPAD) diff --git a/toolkit/mozapps/extensions/AddonManagerStartup-inlines.h b/toolkit/mozapps/extensions/AddonManagerStartup-inlines.h @@ -6,8 +6,6 @@ #ifndef AddonManagerStartup_inlines_h #define AddonManagerStartup_inlines_h -#include <utility> - #include "js/Array.h" // JS::GetArrayLength, JS::IsArrayObject #include "js/Exception.h" #include "js/PropertyAndElement.h" // JS_Enumerate, JS_GetElement, JS_GetProperty, JS_GetPropertyById diff --git a/toolkit/mozapps/update/tests/test_file_change_mtime.cpp b/toolkit/mozapps/update/tests/test_file_change_mtime.cpp @@ -1,6 +1,5 @@ #include <windows.h> #include <iostream> -#include <string> void usage(int argc, wchar_t** argv) { std::wcout << L"Usage:\n" diff --git a/toolkit/mozapps/update/tests/test_file_hold_open.cpp b/toolkit/mozapps/update/tests/test_file_hold_open.cpp @@ -1,6 +1,5 @@ #include <windows.h> #include <iostream> -#include <string> // Opens a file and holds it open until the caller sends input. // Then it closes the file and exits. diff --git a/toolkit/xre/GeckoArgs.h b/toolkit/xre/GeckoArgs.h @@ -10,7 +10,6 @@ #include "mozilla/UniquePtrExtensions.h" #include "mozilla/ipc/SharedMemoryHandle.h" -#include <array> #include <cctype> #include <charconv> #include <climits> diff --git a/toolkit/xre/test/gtest/TestCmdLineAndEnvUtils.cpp b/toolkit/xre/test/gtest/TestCmdLineAndEnvUtils.cpp @@ -3,11 +3,8 @@ * 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 <memory> #include <ostream> #include <string> -#include <string_view> -#include <type_traits> #include <vector> #include "gtest/gtest.h"