commit 65210036bd21a54861385bb4edbdbe7f77f9e1d7 parent 36ca492519fc662769027aea8a89e5b8261ff35d Author: serge-sans-paille <sguelton@mozilla.com> Date: Wed, 29 Oct 2025 07:56:53 +0000 Bug 1996909 - Remove unused mfbt inclusion in netwerk/** r=emilio,cookie-reviewers Differential Revision: https://phabricator.services.mozilla.com/D270366 Diffstat:
32 files changed, 0 insertions(+), 32 deletions(-)
diff --git a/netwerk/base/ArrayBufferInputStream.cpp b/netwerk/base/ArrayBufferInputStream.cpp @@ -9,7 +9,6 @@ #include "js/ArrayBuffer.h" // JS::{GetArrayBuffer{ByteLength,Data},IsArrayBufferObject} #include "js/RootingAPI.h" // JS::{Handle,Rooted} #include "js/Value.h" // JS::Value -#include "mozilla/Span.h" #include "mozilla/UniquePtrExtensions.h" #include "mozilla/dom/ScriptSettings.h" diff --git a/netwerk/base/ArrayBufferInputStream.h b/netwerk/base/ArrayBufferInputStream.h @@ -8,7 +8,6 @@ #include "nsIArrayBufferInputStream.h" #include "js/Value.h" -#include "mozilla/Maybe.h" #include "mozilla/UniquePtr.h" #include "nsISupportsImpl.h" diff --git a/netwerk/base/ContentRange.h b/netwerk/base/ContentRange.h @@ -7,7 +7,6 @@ #ifndef ContentRange_h__ #define ContentRange_h__ -#include "mozilla/Maybe.h" #include "nsString.h" #include "nsISupportsImpl.h" diff --git a/netwerk/base/nsPACMan.cpp b/netwerk/base/nsPACMan.cpp @@ -20,7 +20,6 @@ #include "nsIOService.h" #include "nsNetUtil.h" #include "nsThreadUtils.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/StaticPrefs_network.h" #include "mozilla/Try.h" diff --git a/netwerk/base/nsSocketTransportService2.cpp b/netwerk/base/nsSocketTransportService2.cpp @@ -9,7 +9,6 @@ #include "mozilla/ChaosMode.h" #include "mozilla/glean/NetwerkMetrics.h" #include "mozilla/IntegerPrintfMacros.h" -#include "mozilla/Likely.h" #include "mozilla/MaybeLeakRefPtr.h" #include "mozilla/PodOperations.h" #include "mozilla/Preferences.h" diff --git a/netwerk/base/nsURLHelper.cpp b/netwerk/base/nsURLHelper.cpp @@ -10,7 +10,6 @@ #include "mozilla/CompactPair.h" #include "mozilla/Encoding.h" #include "mozilla/Mutex.h" -#include "mozilla/RangedPtr.h" #include "mozilla/TextUtils.h" #include <algorithm> diff --git a/netwerk/cookie/CookieCommons.cpp b/netwerk/cookie/CookieCommons.cpp @@ -9,7 +9,6 @@ #include "CookieParser.h" #include "CookieService.h" #include "mozilla/ContentBlockingNotifier.h" -#include "mozilla/ScopeExit.h" #include "mozilla/StaticPrefs_network.h" #include "mozilla/StorageAccess.h" #include "mozilla/dom/nsMixedContentBlocker.h" diff --git a/netwerk/dns/DNSPacket.cpp b/netwerk/dns/DNSPacket.cpp @@ -5,7 +5,6 @@ #include "DNSPacket.h" #include "DNS.h" -#include "mozilla/ScopeExit.h" #include "mozilla/StaticPrefs_network.h" // Put DNSLogging.h at the end to avoid LOG being overwritten by other headers. #include "DNSLogging.h" diff --git a/netwerk/dns/PlatformDNSMac.cpp b/netwerk/dns/PlatformDNSMac.cpp @@ -9,7 +9,6 @@ #include "mozilla/net/DNSPacket.h" #include "nsIDNSService.h" #include "mozilla/StaticPrefs_network.h" -#include "mozilla/ThreadLocal.h" #include <dns_sd.h> #include <unistd.h> diff --git a/netwerk/dns/PlatformDNSUnix.cpp b/netwerk/dns/PlatformDNSUnix.cpp @@ -8,7 +8,6 @@ #include "mozilla/glean/NetwerkMetrics.h" #include "mozilla/net/DNSPacket.h" #include "nsIDNSService.h" -#include "mozilla/Maybe.h" #include "mozilla/Mutex.h" #include "mozilla/StaticPrefs_network.h" #include "mozilla/ThreadLocal.h" diff --git a/netwerk/dns/TRR.h b/netwerk/dns/TRR.h @@ -8,7 +8,6 @@ #define mozilla_net_TRR_h #include "mozilla/net/DNSByTypeRecord.h" -#include "mozilla/Assertions.h" #include "nsClassHashtable.h" #include "nsIChannel.h" #include "nsIInterfaceRequestor.h" diff --git a/netwerk/dns/TRRServiceBase.cpp b/netwerk/dns/TRRServiceBase.cpp @@ -8,7 +8,6 @@ #include "TRRService.h" #include "mozilla/Preferences.h" -#include "mozilla/ScopeExit.h" #include "nsHostResolver.h" #include "nsNetUtil.h" #include "nsIOService.h" diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp @@ -45,7 +45,6 @@ #include "mozilla/StaticPtr.h" #include "mozilla/SyncRunnable.h" #include "mozilla/TextUtils.h" -#include "mozilla/Utf8.h" using namespace mozilla; using namespace mozilla::net; diff --git a/netwerk/dns/nsEffectiveTLDService.cpp b/netwerk/dns/nsEffectiveTLDService.cpp @@ -14,7 +14,6 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/ResultExtensions.h" #include "mozilla/TextUtils.h" -#include "mozilla/Try.h" #include "MainThreadUtils.h" #include "nsContentUtils.h" diff --git a/netwerk/dns/nsEffectiveTLDService.h b/netwerk/dns/nsEffectiveTLDService.h @@ -10,7 +10,6 @@ #include "mozilla/AutoMemMap.h" #include "mozilla/Dafsa.h" -#include "mozilla/Maybe.h" #include "mozilla/MemoryReporting.h" #include "mozilla/MruCache.h" #include "mozilla/RWLock.h" diff --git a/netwerk/dns/nsHostResolver.cpp b/netwerk/dns/nsHostResolver.cpp @@ -40,7 +40,6 @@ #include "mozilla/Atomics.h" #include "mozilla/glean/NetwerkMetrics.h" -#include "mozilla/HashFunctions.h" #include "mozilla/TimeStamp.h" #include "mozilla/glean/NetwerkDnsMetrics.h" #include "mozilla/DebugOnly.h" diff --git a/netwerk/dns/nsHostResolver.h b/netwerk/dns/nsHostResolver.h @@ -25,7 +25,6 @@ #include "nsIThreadPool.h" #include "mozilla/net/NetworkConnectivityService.h" #include "mozilla/net/DNSByTypeRecord.h" -#include "mozilla/Maybe.h" #include "mozilla/StaticPrefs_network.h" namespace mozilla { diff --git a/netwerk/dns/nsIDNService.cpp b/netwerk/dns/nsIDNService.cpp @@ -18,7 +18,6 @@ #include "mozilla/Casting.h" #include "mozilla/StaticPrefs_network.h" #include "mozilla/TextUtils.h" -#include "mozilla/Utf8.h" #include "mozilla/intl/UnicodeProperties.h" #include "mozilla/intl/UnicodeScriptCodes.h" #include "nsNetUtil.h" diff --git a/netwerk/protocol/file/nsFileProtocolHandler.cpp b/netwerk/protocol/file/nsFileProtocolHandler.cpp @@ -15,7 +15,6 @@ #include "FileChannelChild.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/net/NeckoCommon.h" // URL file handling, copied and modified from diff --git a/netwerk/protocol/http/Http3Stream.h b/netwerk/protocol/http/Http3Stream.h @@ -9,7 +9,6 @@ #include "nsAHttpTransaction.h" #include "ARefBase.h" #include "Http3StreamBase.h" -#include "mozilla/WeakPtr.h" #include "nsIClassOfService.h" namespace mozilla { diff --git a/netwerk/protocol/http/Http3WebTransportSession.h b/netwerk/protocol/http/Http3WebTransportSession.h @@ -9,7 +9,6 @@ #include "WebTransportSessionBase.h" #include "Http3StreamBase.h" #include "nsIWebTransport.h" -#include "mozilla/WeakPtr.h" #include "mozilla/net/NeqoHttp3Conn.h" namespace mozilla::net { diff --git a/netwerk/protocol/http/HttpTransactionShell.h b/netwerk/protocol/http/HttpTransactionShell.h @@ -8,7 +8,6 @@ #include <functional> #include "TimingStruct.h" -#include "mozilla/Maybe.h" #include "mozilla/UniquePtr.h" #include "nsIClassOfService.h" #include "nsIEarlyHintObserver.h" diff --git a/netwerk/protocol/http/OpaqueResponseUtils.h b/netwerk/protocol/http/OpaqueResponseUtils.h @@ -17,7 +17,6 @@ #include "nsMimeTypes.h" #include "nsIHttpChannel.h" -#include "mozilla/Variant.h" #include "mozilla/Logging.h" #include "mozilla/glean/NetwerkProtocolHttpMetrics.h" diff --git a/netwerk/protocol/http/nsHttp.cpp b/netwerk/protocol/http/nsHttp.cpp @@ -12,7 +12,6 @@ #include "CacheControlParser.h" #include "PLDHashTable.h" #include "mozilla/DataMutex.h" -#include "mozilla/HashFunctions.h" #include "mozilla/OriginAttributes.h" #include "mozilla/Preferences.h" #include "mozilla/StaticPrefs_network.h" diff --git a/netwerk/protocol/http/nsHttpBasicAuth.h b/netwerk/protocol/http/nsHttpBasicAuth.h @@ -7,7 +7,6 @@ #define nsBasicAuth_h__ #include "nsIHttpAuthenticator.h" -#include "mozilla/RefPtr.h" #include "mozilla/StaticPtr.h" namespace mozilla { diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp @@ -11,7 +11,6 @@ #include "mozilla/ScopeExit.h" #include "mozilla/Sprintf.h" -#include "mozilla/Try.h" #include "mozilla/dom/nsCSPContext.h" #include "mozilla/dom/NavigatorLogin.h" #include "mozilla/glean/AntitrackingMetrics.h" diff --git a/netwerk/protocol/res/RemoteStreamGetter.cpp b/netwerk/protocol/res/RemoteStreamGetter.cpp @@ -8,7 +8,6 @@ #include "mozilla/MozPromise.h" #include "mozilla/net/NeckoChild.h" #include "mozilla/RefPtr.h" -#include "mozilla/ResultExtensions.h" #include "nsContentUtils.h" #include "nsIInputStreamPump.h" diff --git a/netwerk/protocol/res/SubstitutingProtocolHandler.h b/netwerk/protocol/res/SubstitutingProtocolHandler.h @@ -13,7 +13,6 @@ #include "nsStandardURL.h" #include "nsJARURI.h" #include "mozilla/chrome/RegistryMessageUtils.h" -#include "mozilla/Maybe.h" #include "mozilla/RWLock.h" class nsIIOService; diff --git a/netwerk/system/netlink/NetlinkService.cpp b/netwerk/system/netlink/NetlinkService.cpp @@ -29,7 +29,6 @@ #include "mozilla/ProfilerThreadSleep.h" #include "mozilla/glean/NetwerkMetrics.h" #include "mozilla/DebugOnly.h" -#include "mozilla/ScopeExit.h" #if defined(HAVE_RES_NINIT) # include <netinet/in.h> diff --git a/netwerk/test/fuzz/TestJARFuzzing.cpp b/netwerk/test/fuzz/TestJARFuzzing.cpp @@ -14,7 +14,6 @@ #include "nsNetCID.h" #include "nsPrintfCString.h" #include "nsString.h" -#include "mozilla/Span.h" #include "nsIInputStream.h" #include "nsIStringEnumerator.h" diff --git a/netwerk/test/gtest/TestMozURL.cpp b/netwerk/test/gtest/TestMozURL.cpp @@ -4,7 +4,6 @@ #include <regex> #include "json/json.h" #include "json/reader.h" -#include "mozilla/TextUtils.h" #include "nsString.h" #include "mozilla/net/MozURL.h" #include "nsCOMPtr.h" diff --git a/netwerk/test/gtest/TestPollableEvent.cpp b/netwerk/test/gtest/TestPollableEvent.cpp @@ -6,7 +6,6 @@ #include "TestCommon.h" #include "gtest/gtest.h" -#include "mozilla/Atomics.h" #include "mozilla/gtest/MozAssertions.h" #include "nsCOMPtr.h" #include "nsISocketTransport.h"