commit c961fa4a0b73fb475114281118c81159ed5547bb parent b31bbe190c47e5abd31db481574b786d437348a8 Author: serge-sans-paille <sguelton@mozilla.com> Date: Fri, 24 Oct 2025 09:31:15 +0000 Bug 1993127 - Remove unused inclusion of Attributes.h from xpcom/* r=emilio Differential Revision: https://phabricator.services.mozilla.com/D269714 Diffstat:
58 files changed, 0 insertions(+), 67 deletions(-)
diff --git a/xpcom/base/AvailableMemoryWatcherUtils.h b/xpcom/base/AvailableMemoryWatcherUtils.h @@ -7,7 +7,6 @@ #ifndef mozilla_AvailableMemoryWatcherUtils_h #define mozilla_AvailableMemoryWatcherUtils_h -#include "mozilla/Attributes.h" #include "nsISupportsUtils.h" // For nsresult namespace mozilla { diff --git a/xpcom/base/nsConsoleMessage.h b/xpcom/base/nsConsoleMessage.h @@ -7,8 +7,6 @@ #ifndef __nsconsolemessage_h__ #define __nsconsolemessage_h__ -#include "mozilla/Attributes.h" - #include "nsIConsoleMessage.h" #include "nsString.h" diff --git a/xpcom/base/nsError.h b/xpcom/base/nsError.h @@ -11,7 +11,6 @@ # error nsError.h no longer supports C sources #endif -#include "mozilla/Attributes.h" #include "mozilla/Likely.h" #include <stdint.h> diff --git a/xpcom/base/nsInterfaceRequestorAgg.cpp b/xpcom/base/nsInterfaceRequestorAgg.cpp @@ -7,7 +7,6 @@ #include "nsInterfaceRequestorAgg.h" #include "nsIInterfaceRequestor.h" #include "nsCOMPtr.h" -#include "mozilla/Attributes.h" #include "nsThreadUtils.h" #include "nsProxyRelease.h" diff --git a/xpcom/base/nsMacUtilsImpl.h b/xpcom/base/nsMacUtilsImpl.h @@ -9,7 +9,6 @@ #include "nsString.h" #include "mozilla/Atomics.h" -#include "mozilla/Attributes.h" #include "mozilla/StaticMutex.h" #include "mozilla/StaticPtr.h" diff --git a/xpcom/base/nsMaybeWeakPtr.h b/xpcom/base/nsMaybeWeakPtr.h @@ -6,7 +6,6 @@ #ifndef nsMaybeWeakPtr_h_ #define nsMaybeWeakPtr_h_ -#include "mozilla/Attributes.h" #include "mozilla/Try.h" #include "nsCOMPtr.h" #include "nsIWeakReferenceUtils.h" diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp @@ -29,7 +29,6 @@ #include "nsNetCID.h" #include "nsThread.h" #include "VRProcessManager.h" -#include "mozilla/Attributes.h" #include "mozilla/MemoryReportingProcess.h" #include "mozilla/PodOperations.h" #include "mozilla/Preferences.h" diff --git a/xpcom/base/nsVersionComparatorImpl.h b/xpcom/base/nsVersionComparatorImpl.h @@ -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 "mozilla/Attributes.h" - #include "nsIVersionComparator.h" class nsVersionComparatorImpl final : public nsIVersionComparator { diff --git a/xpcom/base/nsWeakReference.cpp b/xpcom/base/nsWeakReference.cpp @@ -6,8 +6,6 @@ // nsWeakReference.cpp -#include "mozilla/Attributes.h" - #include "nsWeakReference.h" #include "nsCOMPtr.h" #include "nsDebug.h" diff --git a/xpcom/build/XREAppData.h b/xpcom/build/XREAppData.h @@ -8,7 +8,6 @@ #define nsXREAppData_h #include <stdint.h> -#include "mozilla/Attributes.h" #include "mozilla/UniquePtrExtensions.h" #include "nsCOMPtr.h" #include "nsCRTGlue.h" diff --git a/xpcom/components/ModuleUtils.h b/xpcom/components/ModuleUtils.h @@ -10,7 +10,6 @@ #include <type_traits> #include "mozilla/AlreadyAddRefed.h" -#include "mozilla/Attributes.h" #include "mozilla/Module.h" #define NS_GENERIC_FACTORY_CONSTRUCTOR(_InstanceClass) \ diff --git a/xpcom/components/nsCategoryCache.h b/xpcom/components/nsCategoryCache.h @@ -7,8 +7,6 @@ #ifndef nsCategoryCache_h_ #define nsCategoryCache_h_ -#include "mozilla/Attributes.h" - #include "nsIObserver.h" #include "nsServiceManagerUtils.h" diff --git a/xpcom/components/nsCategoryManager.h b/xpcom/components/nsCategoryManager.h @@ -14,7 +14,6 @@ #include "mozilla/ArenaAllocator.h" #include "mozilla/MemoryReporting.h" #include "mozilla/Mutex.h" -#include "mozilla/Attributes.h" class nsIMemoryReporter; diff --git a/xpcom/ds/nsArray.h b/xpcom/ds/nsArray.h @@ -11,7 +11,6 @@ #include "nsCOMArray.h" #include "nsCOMPtr.h" #include "nsCycleCollectionParticipant.h" -#include "mozilla/Attributes.h" // {35C66FD1-95E9-4e0a-80C5-C3BD2B375481} #define NS_ARRAY_CID \ diff --git a/xpcom/ds/nsArrayEnumerator.cpp b/xpcom/ds/nsArrayEnumerator.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 "mozilla/Attributes.h" - #include "nsArrayEnumerator.h" #include "nsIArray.h" diff --git a/xpcom/ds/nsCOMArray.h b/xpcom/ds/nsCOMArray.h @@ -7,7 +7,6 @@ #ifndef nsCOMArray_h__ #define nsCOMArray_h__ -#include "mozilla/Attributes.h" #include "mozilla/ArrayIterator.h" #include "mozilla/MemoryReporting.h" diff --git a/xpcom/ds/nsEnumeratorUtils.cpp b/xpcom/ds/nsEnumeratorUtils.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 "mozilla/Attributes.h" - #include "nsEnumeratorUtils.h" #include "nsIStringEnumerator.h" diff --git a/xpcom/ds/nsHashPropertyBag.cpp b/xpcom/ds/nsHashPropertyBag.cpp @@ -8,7 +8,6 @@ #include <utility> -#include "mozilla/Attributes.h" #include "mozilla/SimpleEnumerator.h" #include "nsArray.h" #include "nsArrayEnumerator.h" diff --git a/xpcom/ds/nsINIParserImpl.cpp b/xpcom/ds/nsINIParserImpl.cpp @@ -9,7 +9,6 @@ #include "nsINIParser.h" #include "nsStringEnumerator.h" #include "nsTArray.h" -#include "mozilla/Attributes.h" class nsINIParserImpl final : public nsIINIParser, public nsIINIParserWriter { ~nsINIParserImpl() = default; diff --git a/xpcom/ds/nsINIParserImpl.h b/xpcom/ds/nsINIParserImpl.h @@ -8,7 +8,6 @@ #define nsINIParserImpl_h__ #include "nsIINIParser.h" -#include "mozilla/Attributes.h" #define NS_INIPARSERFACTORY_CONTRACTID "@mozilla.org/xpcom/ini-parser-factory;1" diff --git a/xpcom/ds/nsObserverList.h b/xpcom/ds/nsObserverList.h @@ -13,7 +13,6 @@ #include "nsHashKeys.h" #include "nsMaybeWeakPtr.h" #include "nsSimpleEnumerator.h" -#include "mozilla/Attributes.h" class nsObserverList : public nsCharPtrHashKey { friend class nsObserverService; diff --git a/xpcom/ds/nsObserverService.h b/xpcom/ds/nsObserverService.h @@ -11,7 +11,6 @@ #include "nsObserverList.h" #include "nsIMemoryReporter.h" #include "nsTHashtable.h" -#include "mozilla/Attributes.h" // {D07F5195-E3D1-11d2-8ACD-00105A1B8860} #define NS_OBSERVERSERVICE_CID \ diff --git a/xpcom/ds/nsPersistentProperties.h b/xpcom/ds/nsPersistentProperties.h @@ -12,7 +12,6 @@ #include "nsString.h" #include "nsCOMPtr.h" #include "mozilla/ArenaAllocator.h" -#include "mozilla/Attributes.h" class nsIUnicharInputStream; diff --git a/xpcom/ds/nsProperties.h b/xpcom/ds/nsProperties.h @@ -10,7 +10,6 @@ #include "nsIProperties.h" #include "nsInterfaceHashtable.h" #include "nsHashKeys.h" -#include "mozilla/Attributes.h" typedef nsInterfaceHashtable<nsCharPtrHashKey, nsISupports> nsProperties_HashBase; diff --git a/xpcom/ds/nsStringEnumerator.cpp b/xpcom/ds/nsStringEnumerator.cpp @@ -7,7 +7,6 @@ #include "nsStringEnumerator.h" #include "nsSimpleEnumerator.h" #include "nsSupportsPrimitives.h" -#include "mozilla/Attributes.h" #include "mozilla/ResultExtensions.h" #include "mozilla/Try.h" #include "mozilla/dom/IteratorResultBinding.h" diff --git a/xpcom/ds/nsSupportsPrimitives.h b/xpcom/ds/nsSupportsPrimitives.h @@ -7,8 +7,6 @@ #ifndef nsSupportsPrimitives_h__ #define nsSupportsPrimitives_h__ -#include "mozilla/Attributes.h" - #include "nsISupportsPrimitives.h" #include "nsCOMPtr.h" #include "nsString.h" diff --git a/xpcom/ds/nsTHashMap.h b/xpcom/ds/nsTHashMap.h @@ -7,7 +7,6 @@ #ifndef XPCOM_DS_NSTHASHMAP_H_ #define XPCOM_DS_NSTHASHMAP_H_ -#include "mozilla/Attributes.h" #include "mozilla/RefPtr.h" #include "nsBaseHashtable.h" #include "nsCOMPtr.h" diff --git a/xpcom/io/FileDescriptorFile.h b/xpcom/io/FileDescriptorFile.h @@ -7,7 +7,6 @@ #ifndef _FileDescriptorFile_h #define _FileDescriptorFile_h -#include "mozilla/Attributes.h" #include "mozilla/ipc/FileDescriptor.h" #include "nsIFile.h" #include "private/pprio.h" diff --git a/xpcom/io/InputStreamLengthWrapper.h b/xpcom/io/InputStreamLengthWrapper.h @@ -7,7 +7,6 @@ #ifndef InputStreamLengthWrapper_h #define InputStreamLengthWrapper_h -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #include "nsCOMPtr.h" #include "nsIAsyncInputStream.h" diff --git a/xpcom/io/SlicedInputStream.h b/xpcom/io/SlicedInputStream.h @@ -7,7 +7,6 @@ #ifndef SlicedInputStream_h #define SlicedInputStream_h -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #include "nsCOMPtr.h" #include "nsIAsyncInputStream.h" diff --git a/xpcom/io/SnappyCompressOutputStream.h b/xpcom/io/SnappyCompressOutputStream.h @@ -7,7 +7,6 @@ #ifndef mozilla_SnappyCompressOutputStream_h__ #define mozilla_SnappyCompressOutputStream_h__ -#include "mozilla/Attributes.h" #include "mozilla/UniquePtr.h" #include "nsCOMPtr.h" #include "nsIOutputStream.h" diff --git a/xpcom/io/SnappyFrameUtils.h b/xpcom/io/SnappyFrameUtils.h @@ -9,7 +9,6 @@ #include <cstddef> -#include "mozilla/Attributes.h" #include "nsError.h" namespace mozilla { diff --git a/xpcom/io/SnappyUncompressInputStream.h b/xpcom/io/SnappyUncompressInputStream.h @@ -7,7 +7,6 @@ #ifndef mozilla_SnappyUncompressInputStream_h__ #define mozilla_SnappyUncompressInputStream_h__ -#include "mozilla/Attributes.h" #include "mozilla/UniquePtr.h" #include "nsCOMPtr.h" #include "nsIInputStream.h" diff --git a/xpcom/io/nsAppFileLocationProvider.h b/xpcom/io/nsAppFileLocationProvider.h @@ -9,7 +9,6 @@ #include "nsIDirectoryService.h" #include "nsCOMPtr.h" -#include "mozilla/Attributes.h" class nsIFile; diff --git a/xpcom/io/nsDirectoryService.h b/xpcom/io/nsDirectoryService.h @@ -12,7 +12,6 @@ #include "nsIFile.h" #include "nsDirectoryServiceDefs.h" #include "nsTArray.h" -#include "mozilla/Attributes.h" #include "mozilla/StaticPtr.h" #define NS_DIRECTORY_SERVICE_CID \ diff --git a/xpcom/io/nsIOUtil.h b/xpcom/io/nsIOUtil.h @@ -11,7 +11,6 @@ {0xeb833911, 0x4f49, 0x4623, {0x84, 0x5f, 0xe5, 0x8a, 0x8e, 0x6d, 0xe4, 0xc2}} #include "nsIIOUtil.h" -#include "mozilla/Attributes.h" class nsIOUtil final : public nsIIOUtil { ~nsIOUtil() = default; diff --git a/xpcom/io/nsInputStreamTee.cpp b/xpcom/io/nsInputStreamTee.cpp @@ -9,7 +9,6 @@ #include "mozilla/Maybe.h" #include "mozilla/Mutex.h" -#include "mozilla/Attributes.h" #include "mozilla/IntegerPrintfMacros.h" #include "nsIInputStreamTee.h" #include "nsIInputStream.h" diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp @@ -10,7 +10,6 @@ #include "nsLocalFile.h" -#include "mozilla/Attributes.h" #include "mozilla/CheckedInt.h" #include "mozilla/DebugOnly.h" #include "mozilla/Sprintf.h" diff --git a/xpcom/io/nsLocalFileWin.h b/xpcom/io/nsLocalFileWin.h @@ -17,8 +17,6 @@ #include "nsWindowsHelpers.h" #include "prio.h" -#include "mozilla/Attributes.h" - #include <windows.h> #include <shlobj.h> diff --git a/xpcom/io/nsMultiplexInputStream.cpp b/xpcom/io/nsMultiplexInputStream.cpp @@ -9,7 +9,6 @@ * stream. */ -#include "mozilla/Attributes.h" #include "mozilla/CheckedInt.h" #include "mozilla/MathAlgorithms.h" #include "mozilla/Mutex.h" diff --git a/xpcom/io/nsScriptableBase64Encoder.h b/xpcom/io/nsScriptableBase64Encoder.h @@ -8,7 +8,6 @@ #define nsScriptableBase64Encoder_h__ #include "nsIScriptableBase64Encoder.h" -#include "mozilla/Attributes.h" #define NS_SCRIPTABLEBASE64ENCODER_CID \ {0xaaf68860, 0xf849, 0x40ee, {0xbb, 0x7a, 0xb2, 0x29, 0xbc, 0xe0, 0x36, 0xa3}} diff --git a/xpcom/io/nsScriptableInputStream.h b/xpcom/io/nsScriptableInputStream.h @@ -10,7 +10,6 @@ #include "nsIScriptableInputStream.h" #include "nsIInputStream.h" #include "nsCOMPtr.h" -#include "mozilla/Attributes.h" #define NS_SCRIPTABLEINPUTSTREAM_CID \ {0x7225c040, 0xa9bf, 0x11d3, {0xa1, 0x97, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44}} diff --git a/xpcom/io/nsStorageStream.cpp b/xpcom/io/nsStorageStream.cpp @@ -23,7 +23,6 @@ #include "nsIIPCSerializableInputStream.h" #include "nsISeekableStream.h" #include "mozilla/Logging.h" -#include "mozilla/Attributes.h" #include "mozilla/Likely.h" #include "mozilla/MathAlgorithms.h" #include "mozilla/ipc/InputStreamUtils.h" diff --git a/xpcom/io/nsStorageStream.h b/xpcom/io/nsStorageStream.h @@ -17,7 +17,6 @@ #include "nsIStorageStream.h" #include "nsIOutputStream.h" -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #define NS_STORAGESTREAM_CID \ diff --git a/xpcom/io/nsStringStream.cpp b/xpcom/io/nsStringStream.cpp @@ -19,7 +19,6 @@ #include "nsCRT.h" #include "prerror.h" #include "nsIClassInfoImpl.h" -#include "mozilla/Attributes.h" #include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/Maybe.h" #include "mozilla/ReentrantMonitor.h" diff --git a/xpcom/io/nsUnicharInputStream.cpp b/xpcom/io/nsUnicharInputStream.cpp @@ -11,7 +11,6 @@ #include "nsCRT.h" #include "nsStreamUtils.h" #include "nsConverterInputStream.h" -#include "mozilla/Attributes.h" #include <fcntl.h> #if defined(XP_WIN) # include <io.h> diff --git a/xpcom/reflect/xptcall/xptcprivate.h b/xpcom/reflect/xptcall/xptcprivate.h @@ -9,7 +9,6 @@ #define xptcprivate_h___ #include "xptcall.h" -#include "mozilla/Attributes.h" #if !defined(__ia64) || \ (!defined(__hpux) && !defined(__linux__) && !defined(__FreeBSD__)) diff --git a/xpcom/tests/gtest/TestCallTemplates.cpp b/xpcom/tests/gtest/TestCallTemplates.cpp @@ -17,7 +17,6 @@ #include "nsIInterfaceRequestorUtils.h" #include "nsComponentManagerUtils.h" #include "nsServiceManagerUtils.h" -#include "mozilla/Attributes.h" #define NS_ITESTSERVICE_IID \ {0x127b5253, 0x37b1, 0x43c7, {0x96, 0x2b, 0xab, 0xf1, 0x2d, 0x22, 0x56, 0xae}} diff --git a/xpcom/tests/gtest/TestRacingServiceManager.cpp b/xpcom/tests/gtest/TestRacingServiceManager.cpp @@ -14,7 +14,6 @@ #include "pratom.h" #include "prmon.h" #include "mozilla/Assertions.h" -#include "mozilla/Attributes.h" #include "mozilla/gtest/MozAssertions.h" #include "mozilla/ReentrantMonitor.h" diff --git a/xpcom/tests/gtest/TestThreadPoolListener.cpp b/xpcom/tests/gtest/TestThreadPoolListener.cpp @@ -14,7 +14,6 @@ #include "prmon.h" #include "prthread.h" #include "mozilla/Assertions.h" -#include "mozilla/Attributes.h" #include "mozilla/gtest/MozAssertions.h" #include "mozilla/ReentrantMonitor.h" diff --git a/xpcom/threads/BlockingResourceBase.h b/xpcom/threads/BlockingResourceBase.h @@ -9,7 +9,6 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/ThreadLocal.h" -#include "mozilla/Attributes.h" #include "nscore.h" #include "nsDebug.h" diff --git a/xpcom/threads/DeadlockDetector.h b/xpcom/threads/DeadlockDetector.h @@ -6,8 +6,6 @@ #ifndef mozilla_DeadlockDetector_h #define mozilla_DeadlockDetector_h -#include "mozilla/Attributes.h" - #include <stdlib.h> #include "prlock.h" diff --git a/xpcom/threads/TimerThread.h b/xpcom/threads/TimerThread.h @@ -16,7 +16,6 @@ #include "nsTArray.h" -#include "mozilla/Attributes.h" #include "mozilla/HalTypes.h" #include "mozilla/Monitor.h" #include "mozilla/ProfilerUtils.h" diff --git a/xpcom/threads/nsEnvironment.h b/xpcom/threads/nsEnvironment.h @@ -7,7 +7,6 @@ #ifndef nsEnvironment_h__ #define nsEnvironment_h__ -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #include "nsIEnvironment.h" diff --git a/xpcom/threads/nsProcess.h b/xpcom/threads/nsProcess.h @@ -11,7 +11,6 @@ # define PROCESSMODEL_WINAPI #endif -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #include "nsIProcess.h" #include "nsIObserver.h" diff --git a/xpcom/threads/nsThread.h b/xpcom/threads/nsThread.h @@ -10,7 +10,6 @@ #include "MainThreadUtils.h" #include "mozilla/AlreadyAddRefed.h" #include "mozilla/Atomics.h" -#include "mozilla/Attributes.h" #include "mozilla/DataMutex.h" #include "mozilla/EventQueue.h" #include "mozilla/LinkedList.h" diff --git a/xpcom/threads/nsThreadUtils.cpp b/xpcom/threads/nsThreadUtils.cpp @@ -8,7 +8,6 @@ #include "chrome/common/ipc_message.h" // for IPC::Message #include "MaybeLeakRefPtr.h" -#include "mozilla/Attributes.h" #include "mozilla/Likely.h" #include "mozilla/TaskQueue.h" #include "mozilla/TimeStamp.h" diff --git a/xpcom/threads/nsTimerImpl.h b/xpcom/threads/nsTimerImpl.h @@ -14,7 +14,6 @@ #include "nsCOMPtr.h" #include "nsString.h" -#include "mozilla/Attributes.h" #include "mozilla/Mutex.h" #include "mozilla/StaticMutex.h" #include "mozilla/TimeStamp.h"