tor-browser

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

commit da7ceec18dd01ef733647e5a22fed2eb8e60fb1c
parent 4e7ded733fcb79ee19003cf817d98c8001959142
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Wed, 12 Nov 2025 18:28:10 +0000

Bug 1999703 - Remove unused STL header inclusions in xpcom/** r=nika,xpcom-reviewers

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

Diffstat:
Mxpcom/base/AppShutdown.h | 1-
Mxpcom/base/nsConsoleService.h | 1-
Mxpcom/base/nsTraceRefcnt.cpp | 1-
Mxpcom/build/LateWriteChecks.cpp | 2--
Mxpcom/build/PoisonIOInterposerMac.cpp | 3---
Mxpcom/build/PoisonIOInterposerWin.cpp | 2--
Mxpcom/ds/nsSupportsPrimitives.cpp | 1-
Mxpcom/glue/FileUtils.h | 1-
Mxpcom/io/nsLocalFileUnix.cpp | 1-
Mxpcom/string/nsASCIIMask.h | 1-
Mxpcom/string/nsFmtString.h | 1-
Mxpcom/string/nsReadableUtils.cpp | 2--
Mxpcom/tests/gtest/TestLogCommandLineHandler.cpp | 1-
Mxpcom/tests/gtest/TestSnappyStreams.cpp | 1-
Mxpcom/tests/gtest/TestTargetShutdownTask.cpp | 1-
Mxpcom/threads/SharedThreadPool.h | 1-
Mxpcom/threads/nsThread.cpp | 2--
17 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/xpcom/base/AppShutdown.h b/xpcom/base/AppShutdown.h @@ -7,7 +7,6 @@ #ifndef AppShutdown_h #define AppShutdown_h -#include <type_traits> #include "nsCOMPtr.h" #include "nsISupports.h" #include "ShutdownPhase.h" diff --git a/xpcom/base/nsConsoleService.h b/xpcom/base/nsConsoleService.h @@ -12,7 +12,6 @@ #define __nsconsoleservice_h__ #include <cstdint> -#include <utility> #include "mozilla/Assertions.h" #include "mozilla/LinkedList.h" diff --git a/xpcom/base/nsTraceRefcnt.cpp b/xpcom/base/nsTraceRefcnt.cpp @@ -46,7 +46,6 @@ #include "mozilla/PoisonIOInterposer.h" #include "mozilla/UniquePtr.h" -#include <string> #include <vector> #ifdef HAVE_DLFCN_H diff --git a/xpcom/build/LateWriteChecks.cpp b/xpcom/build/LateWriteChecks.cpp @@ -4,8 +4,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 <algorithm> - #include "mozilla/IOInterposer.h" #include "mozilla/PoisonIOInterposer.h" #include "mozilla/ProcessedStack.h" diff --git a/xpcom/build/PoisonIOInterposerMac.cpp b/xpcom/build/PoisonIOInterposerMac.cpp @@ -21,9 +21,6 @@ #include "nsTraceRefcnt.h" #include "prio.h" -#include <algorithm> -#include <vector> - #include <sys/param.h> #include <sys/stat.h> #include <sys/socket.h> diff --git a/xpcom/build/PoisonIOInterposerWin.cpp b/xpcom/build/PoisonIOInterposerWin.cpp @@ -6,9 +6,7 @@ #include "PoisonIOInterposer.h" -#include <algorithm> #include <stdio.h> -#include <vector> #include <io.h> #include <windows.h> diff --git a/xpcom/ds/nsSupportsPrimitives.cpp b/xpcom/ds/nsSupportsPrimitives.cpp @@ -7,7 +7,6 @@ #include "nsSupportsPrimitives.h" #include "mozilla/IntegerPrintfMacros.h" #include "mozilla/Sprintf.h" -#include <algorithm> template <typename T> static char* DataToString(const char* aFormat, T aData) { diff --git a/xpcom/glue/FileUtils.h b/xpcom/glue/FileUtils.h @@ -17,7 +17,6 @@ #include "prio.h" #include "prlink.h" -#include <memory> // unique_ptr #include "nsIFile.h" #include <errno.h> #include <limits.h> diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp @@ -54,7 +54,6 @@ # ifdef MOZ_ENABLE_DBUS # include "mozilla/widget/AsyncDBus.h" # include "mozilla/WidgetUtilsGtk.h" -# include <map> # endif #endif diff --git a/xpcom/string/nsASCIIMask.h b/xpcom/string/nsASCIIMask.h @@ -8,7 +8,6 @@ #define nsASCIIMask_h_ #include <array> -#include <utility> #include "mozilla/Attributes.h" diff --git a/xpcom/string/nsFmtString.h b/xpcom/string/nsFmtString.h @@ -7,7 +7,6 @@ #ifndef nsFmtCString_h___ #define nsFmtCString_h___ -#include <type_traits> #include "fmt/format.h" #include "fmt/xchar.h" #include "nsString.h" diff --git a/xpcom/string/nsReadableUtils.cpp b/xpcom/string/nsReadableUtils.cpp @@ -6,8 +6,6 @@ #include "nsReadableUtils.h" -#include <algorithm> - #include "mozilla/CheckedInt.h" #include "mozilla/Utf8.h" diff --git a/xpcom/tests/gtest/TestLogCommandLineHandler.cpp b/xpcom/tests/gtest/TestLogCommandLineHandler.cpp @@ -6,7 +6,6 @@ #include "LogCommandLineHandler.h" -#include <iterator> #include "nsString.h" #include "nsTArray.h" #include "gtest/gtest.h" diff --git a/xpcom/tests/gtest/TestSnappyStreams.cpp b/xpcom/tests/gtest/TestSnappyStreams.cpp @@ -4,7 +4,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 <algorithm> #include "gtest/gtest.h" #include "Helpers.h" #include "mozilla/gtest/MozAssertions.h" diff --git a/xpcom/tests/gtest/TestTargetShutdownTask.cpp b/xpcom/tests/gtest/TestTargetShutdownTask.cpp @@ -4,7 +4,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 <memory> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "gtest/gtest-spi.h" diff --git a/xpcom/threads/SharedThreadPool.h b/xpcom/threads/SharedThreadPool.h @@ -7,7 +7,6 @@ #ifndef SharedThreadPool_h_ #define SharedThreadPool_h_ -#include <utility> #include <type_traits> #include "mozilla/AlreadyAddRefed.h" #include "mozilla/MaybeLeakRefPtr.h" diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp @@ -50,8 +50,6 @@ #include "ThreadEventTarget.h" #include "ThreadDelay.h" -#include <limits> - #ifdef XP_LINUX # ifdef __GLIBC__ # include <gnu/libc-version.h>