Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika

There are only 3 places where nsMemory.h is still needed (image/RasterImage.cpp,
gfx/thebes/gfxFT2FontList.cpp, and nsMemory.cpp). Remove the rest.

Differential Revision: https://phabricator.services.mozilla.com/D158213
This commit is contained in:
Andrew McCreight 2022-09-28 15:17:46 +00:00
parent 31ae4faab6
commit 2da84b8ac4
75 changed files with 0 additions and 82 deletions

View file

@ -18,7 +18,6 @@
#include "NullPrincipal.h" #include "NullPrincipal.h"
#include "DefaultURI.h" #include "DefaultURI.h"
#include "nsSimpleURI.h" #include "nsSimpleURI.h"
#include "nsMemory.h"
#include "nsIClassInfoImpl.h" #include "nsIClassInfoImpl.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsError.h" #include "nsError.h"

View file

@ -9,7 +9,6 @@
#include "nsJSPrincipals.h" #include "nsJSPrincipals.h"
#include "plstr.h" #include "plstr.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsStringBuffer.h" #include "nsStringBuffer.h"
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"

View file

@ -10,7 +10,6 @@
#include "jsfriendapi.h" #include "jsfriendapi.h"
#include "js/Wrapper.h" #include "js/Wrapper.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsMemory.h"
#define JSDEBUGGER_CONTRACTID "@mozilla.org/jsdebugger;1" #define JSDEBUGGER_CONTRACTID "@mozilla.org/jsdebugger;1"

View file

@ -13,7 +13,6 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "mozilla/dom/Document.h" #include "mozilla/dom/Document.h"
#include "nsIException.h" #include "nsIException.h"
#include "nsMemory.h"
#include "xpcprivate.h" #include "xpcprivate.h"
#include "mozilla/dom/DOMExceptionBinding.h" #include "mozilla/dom/DOMExceptionBinding.h"

View file

@ -13,7 +13,6 @@
#include "nsTextFragment.h" #include "nsTextFragment.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsMemory.h"
#include "nsBidiUtils.h" #include "nsBidiUtils.h"
#include "nsUnicharUtils.h" #include "nsUnicharUtils.h"
#include "mozilla/CheckedInt.h" #include "mozilla/CheckedInt.h"

View file

@ -18,7 +18,6 @@
#include "nsCOMArray.h" #include "nsCOMArray.h"
#include "nsINode.h" #include "nsINode.h"
#include "nsJSUtils.h" #include "nsJSUtils.h"
#include "nsMemory.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsArray.h" #include "nsArray.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"

View file

@ -9,7 +9,6 @@
#include "mozilla/IntegerPrintfMacros.h" #include "mozilla/IntegerPrintfMacros.h"
#include "mozilla/SHA1.h" #include "mozilla/SHA1.h"
#include "nsIMemoryReporter.h" #include "nsIMemoryReporter.h"
#include "nsMemory.h"
#include "nsPrintfCString.h" #include "nsPrintfCString.h"
#include "nsRFPService.h" #include "nsRFPService.h"
#include "nsStringStream.h" #include "nsStringStream.h"

View file

@ -21,7 +21,6 @@
#include "mozilla/Services.h" #include "mozilla/Services.h"
#include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceUtils.h"
#include "nsMemory.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
#include "nsIChannel.h" #include "nsIChannel.h"

View file

@ -8,7 +8,6 @@
#include "nsError.h" #include "nsError.h"
#include "mozilla/Components.h" #include "mozilla/Components.h"
#include "mozilla/dom/DOMStringList.h" #include "mozilla/dom/DOMStringList.h"
#include "nsMemory.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"

View file

@ -5,7 +5,6 @@
#include "txNodeSet.h" #include "txNodeSet.h"
#include "txLog.h" #include "txLog.h"
#include "nsMemory.h"
#include "txXPathTreeWalker.h" #include "txXPathTreeWalker.h"
#include <algorithm> #include <algorithm>

View file

@ -10,7 +10,6 @@
#include "mozilla/dom/Document.h" #include "mozilla/dom/Document.h"
#include "nsIStringBundle.h" #include "nsIStringBundle.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsMemory.h"
#include "XPathResult.h" #include "XPathResult.h"
#include "txExecutionState.h" #include "txExecutionState.h"
#include "txMozillaTextOutput.h" #include "txMozillaTextOutput.h"

View file

@ -17,7 +17,6 @@
#include "nsDebug.h" // for NS_WARNING, etc. #include "nsDebug.h" // for NS_WARNING, etc.
#include "nsError.h" // for NS_ERROR_NULL_POINTER, etc. #include "nsError.h" // for NS_ERROR_NULL_POINTER, etc.
#include "nsIContent.h" // for nsIContent #include "nsIContent.h" // for nsIContent
#include "nsMemory.h" // for nsMemory
#include "nsReadableUtils.h" // for ToNewCString #include "nsReadableUtils.h" // for ToNewCString
#include "nsString.h" // for nsString #include "nsString.h" // for nsString

View file

@ -37,7 +37,6 @@
#include "nsThreadUtils.h" // for GetMainThreadSerialEventTarget #include "nsThreadUtils.h" // for GetMainThreadSerialEventTarget
#include "nsVariant.h" // for nsIWritableVariant, etc #include "nsVariant.h" // for nsIWritableVariant, etc
#include "nsLiteralString.h" // for NS_LITERAL_STRING, etc #include "nsLiteralString.h" // for NS_LITERAL_STRING, etc
#include "nsMemory.h" // for nsMemory
#include "nsRange.h" #include "nsRange.h"
#include "nsReadableUtils.h" // for ToNewUnicode, EmptyString, etc #include "nsReadableUtils.h" // for ToNewUnicode, EmptyString, etc
#include "nsServiceManagerUtils.h" // for do_GetService #include "nsServiceManagerUtils.h" // for do_GetService

View file

@ -18,7 +18,6 @@
#include "mozilla/IntegerPrintfMacros.h" #include "mozilla/IntegerPrintfMacros.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsNativeCharsetUtils.h" #include "nsNativeCharsetUtils.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "mozilla/SharedLibrary.h" #include "mozilla/SharedLibrary.h"

View file

@ -18,7 +18,6 @@
#include "nsDNSService2.h" #include "nsDNSService2.h"
#include "nsIDNSService.h" #include "nsIDNSService.h"
#include "nsIDNSRecord.h" #include "nsIDNSRecord.h"
#include "nsMemory.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"

View file

@ -5,7 +5,6 @@
#include "nsAuth.h" #include "nsAuth.h"
#include "nsAuthSambaNTLM.h" #include "nsAuthSambaNTLM.h"
#include "nsMemory.h"
#include "nspr.h" #include "nspr.h"
#include "prenv.h" #include "prenv.h"
#include "plbase64.h" #include "plbase64.h"

View file

@ -10,7 +10,6 @@
#include "nsUnicodeProperties.h" #include "nsUnicodeProperties.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "nsMemory.h"
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(mozEnglishWordUtils, AddRef) NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(mozEnglishWordUtils, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(mozEnglishWordUtils, Release) NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(mozEnglishWordUtils, Release)

View file

@ -14,7 +14,6 @@
#include "nsError.h" // for NS_OK, NS_FAILED, nsresult #include "nsError.h" // for NS_OK, NS_FAILED, nsresult
#include "nsAtom.h" // for nsAtom, NS_Atomize #include "nsAtom.h" // for nsAtom, NS_Atomize
#include "nsID.h" #include "nsID.h"
#include "nsMemory.h" // for nsMemory
#include "nsString.h" // for nsAutoCString, nsAutoString, etc #include "nsString.h" // for nsAutoCString, nsAutoString, etc
#include "nsTArray.h" // for nsTArray, nsTArray_Impl, etc #include "nsTArray.h" // for nsTArray, nsTArray_Impl, etc
#include "nscore.h" // for char16_t, NS_IMETHODIMP #include "nscore.h" // for char16_t, NS_IMETHODIMP

View file

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsIMemoryReporter.h" #include "nsIMemoryReporter.h"
#include "nsMemory.h"
#include "mozilla/ArrayUtils.h" #include "mozilla/ArrayUtils.h"
#include "mozilla/Base64.h" #include "mozilla/Base64.h"
#include "mozilla/CheckedInt.h" #include "mozilla/CheckedInt.h"

View file

@ -62,8 +62,6 @@
#include "mozilla/gfx/2D.h" #include "mozilla/gfx/2D.h"
#include "mozilla/gfx/gfxVars.h" #include "mozilla/gfx/gfxVars.h"
#include "nsMemory.h"
#include <dwmapi.h> #include <dwmapi.h>
#include <d3d11.h> #include <d3d11.h>
#include <d2d1_1.h> #include <d2d1_1.h>

View file

@ -15,7 +15,6 @@
#include "nsIInterfaceRequestorUtils.h" #include "nsIInterfaceRequestorUtils.h"
#include "nsString.h" #include "nsString.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
#include "nsMemory.h"
#include "nsIURL.h" #include "nsIURL.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsIPipe.h" #include "nsIPipe.h"

View file

@ -22,7 +22,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
#include "nsMemory.h"
#include "nsIURL.h" #include "nsIURL.h"
#include "nsIPipe.h" #include "nsIPipe.h"
#include "nsNetCID.h" #include "nsNetCID.h"

View file

@ -14,7 +14,6 @@
#include "gfxPlatform.h" #include "gfxPlatform.h"
#include "imgFrame.h" #include "imgFrame.h"
#include "nsColor.h" #include "nsColor.h"
#include "nsMemory.h"
#include "nsRect.h" #include "nsRect.h"
#include "nspr.h" #include "nspr.h"
#include "png.h" #include "png.h"

View file

@ -22,7 +22,6 @@
#include "nsCRT.h" #include "nsCRT.h"
#include "nsAppDirectoryServiceDefs.h" #include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceUtils.h"
#include "nsMemory.h"
#include "nsXULAppAPI.h" #include "nsXULAppAPI.h"
using namespace mozilla; using namespace mozilla;

View file

@ -12,7 +12,6 @@
#include "nsStringBundleService.h" #include "nsStringBundleService.h"
#include "nsArrayEnumerator.h" #include "nsArrayEnumerator.h"
#include "nscore.h" #include "nscore.h"
#include "nsMemory.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"

View file

@ -113,7 +113,6 @@
#include "nsIComponentRegistrar.h" #include "nsIComponentRegistrar.h"
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsISimpleEnumerator.h" #include "nsISimpleEnumerator.h"
#include "nsMemory.h"
#include "nsIXPConnect.h" #include "nsIXPConnect.h"
#include "nsIXPCScriptable.h" #include "nsIXPCScriptable.h"
#include "nsIObserver.h" #include "nsIObserver.h"

View file

@ -10,7 +10,6 @@
#define xpctest_private_h___ #define xpctest_private_h___
#include "nsISupports.h" #include "nsISupports.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "xpctest_attributes.h" #include "xpctest_attributes.h"
#include "xpctest_params.h" #include "xpctest_params.h"

View file

@ -21,7 +21,6 @@
#include "nsIFrame.h" #include "nsIFrame.h"
#include "nsIFrameInlines.h" #include "nsIFrameInlines.h"
#include "nsImageRenderer.h" #include "nsImageRenderer.h"
#include "nsMemory.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::image; using namespace mozilla::image;

View file

@ -7,7 +7,6 @@
#include "nsDeflateConverter.h" #include "nsDeflateConverter.h"
#include "nsStringStream.h" #include "nsStringStream.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsMemory.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "plstr.h" #include "plstr.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"

View file

@ -10,7 +10,6 @@
#include "nsDeflateConverter.h" #include "nsDeflateConverter.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsMemory.h"
#define ZIP_METHOD_STORE 0 #define ZIP_METHOD_STORE 0
#define ZIP_METHOD_DEFLATE 8 #define ZIP_METHOD_DEFLATE 8

View file

@ -5,7 +5,6 @@
#include "StreamFunctions.h" #include "StreamFunctions.h"
#include "nsZipHeader.h" #include "nsZipHeader.h"
#include "nsMemory.h"
#include "prtime.h" #include "prtime.h"
#define ZIP_FILE_HEADER_SIGNATURE 0x04034b50 #define ZIP_FILE_HEADER_SIGNATURE 0x04034b50

View file

@ -13,7 +13,6 @@
#include "nsIStreamListener.h" #include "nsIStreamListener.h"
#include "nsIInputStreamPump.h" #include "nsIInputStreamPump.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsMemory.h"
#include "nsError.h" #include "nsError.h"
#include "nsStreamUtils.h" #include "nsStreamUtils.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTTPCompressConv.h" #include "nsHTTPCompressConv.h"
#include "nsMemory.h"
#include "plstr.h" #include "plstr.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsCRT.h" #include "nsCRT.h"

View file

@ -4,7 +4,6 @@
#include "nsWifiAccessPoint.h" #include "nsWifiAccessPoint.h"
#include "nsString.h" #include "nsString.h"
#include "nsMemory.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
extern mozilla::LazyLogModule gWifiMonitorLog; extern mozilla::LazyLogModule gWifiMonitorLog;

View file

@ -27,7 +27,6 @@
#include "nscore.h" #include "nscore.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
#include "nsMemory.h"
struct nsHtml5CharacterName { struct nsHtml5CharacterName {
uint16_t nameStart; uint16_t nameStart;

View file

@ -13,7 +13,6 @@
#include "nscore.h" #include "nscore.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
#include "nsMemory.h"
class nsHtml5NamedCharactersAccel { class nsHtml5NamedCharactersAccel {
public: public:

View file

@ -10,7 +10,6 @@
#include <utility> #include <utility>
#include "nsIVariant.h" #include "nsIVariant.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsTArray.h" #include "nsTArray.h"

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsError.h" #include "nsError.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "mozStoragePrivateHelpers.h" #include "mozStoragePrivateHelpers.h"

View file

@ -8,7 +8,6 @@
#include <stdio.h> #include <stdio.h>
#include "nsError.h" #include "nsError.h"
#include "nsMemory.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "nsIClassInfoImpl.h" #include "nsIClassInfoImpl.h"

View file

@ -8,7 +8,6 @@
#include "mozStorageAsyncStatement.h" #include "mozStorageAsyncStatement.h"
#include "mozStorageService.h" #include "mozStorageService.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"

View file

@ -7,7 +7,6 @@
#include "mozStorageAsyncStatementParams.h" #include "mozStorageAsyncStatementParams.h"
#include "nsJSUtils.h" #include "nsJSUtils.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "jsapi.h" #include "jsapi.h"

View file

@ -8,7 +8,6 @@
#include <stdio.h> #include <stdio.h>
#include "nsError.h" #include "nsError.h"
#include "nsMemory.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "nsIClassInfoImpl.h" #include "nsIClassInfoImpl.h"
#include "Variant.h" #include "Variant.h"

View file

@ -8,7 +8,6 @@
#include "mozStorageStatement.h" #include "mozStorageStatement.h"
#include "mozStorageService.h" #include "mozStorageService.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"

View file

@ -7,7 +7,6 @@
#include "mozStorageStatementParams.h" #include "mozStorageStatementParams.h"
#include "nsJSUtils.h" #include "nsJSUtils.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "jsapi.h" #include "jsapi.h"

View file

@ -4,7 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"

View file

@ -14,7 +14,6 @@
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceUtils.h"
#include "nsMemory.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsIThread.h" #include "nsIThread.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "nsMemory.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "nsDocShellCID.h" #include "nsDocShellCID.h"

View file

@ -30,7 +30,6 @@
#include "nsIObserverService.h" #include "nsIObserverService.h"
#include "nsIPrefBranch.h" #include "nsIPrefBranch.h"
#include "nsIPrefService.h" #include "nsIPrefService.h"
#include "nsMemory.h"
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsThreadManager.h" #include "nsThreadManager.h"

View file

@ -7,7 +7,6 @@
#include "MacAutoreleasePool.h" #include "MacAutoreleasePool.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
#include "nsMemory.h"
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>
#include <crt_externs.h> #include <crt_externs.h>

View file

@ -32,7 +32,6 @@
#include "nsIInterfaceRequestorUtils.h" #include "nsIInterfaceRequestorUtils.h"
#include "nsILoadContext.h" #include "nsILoadContext.h"
#include "nsIWebNavigation.h" #include "nsIWebNavigation.h"
#include "nsMemory.h"
#include "nsProfilerStartParams.h" #include "nsProfilerStartParams.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
#include "nsString.h" #include "nsString.h"

View file

@ -17,7 +17,6 @@
#include "nsIFile.h" #include "nsIFile.h"
#include "nsILocalFileMac.h" #include "nsILocalFileMac.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
#include "nsMemory.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsMIMEInfoMac.h" #include "nsMIMEInfoMac.h"
#include "nsEmbedCID.h" #include "nsEmbedCID.h"

View file

@ -38,7 +38,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsUnicharUtils.h" #include "nsUnicharUtils.h"
#include "nsIStringEnumerator.h" #include "nsIStringEnumerator.h"
#include "nsMemory.h"
#include "nsIStreamListener.h" #include "nsIStreamListener.h"
#include "nsIMIMEService.h" #include "nsIMIMEService.h"
#include "nsILoadGroup.h" #include "nsILoadGroup.h"

View file

@ -16,7 +16,6 @@
#include "nsIHandlerService.h" #include "nsIHandlerService.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
#include "nsMIMEInfoImpl.h" #include "nsMIMEInfoImpl.h"
#include "nsMemory.h"
#include "nsCExternalHandlerService.h" #include "nsCExternalHandlerService.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsEmbedCID.h" #include "nsEmbedCID.h"

View file

@ -16,7 +16,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsPrimitiveHelpers.h" #include "nsPrimitiveHelpers.h"
#include "nsMemory.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsStringStream.h" #include "nsStringStream.h"
#include "nsDragService.h" #include "nsDragService.h"

View file

@ -13,7 +13,6 @@
#include "NativeKeyBindings.h" #include "NativeKeyBindings.h"
#include "nsString.h" #include "nsString.h"
#include "nsMemory.h"
#include "nsGtkKeyUtils.h" #include "nsGtkKeyUtils.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>

View file

@ -19,7 +19,6 @@
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "nsArrayEnumerator.h" #include "nsArrayEnumerator.h"
#include "nsMemory.h"
#include "nsEnumeratorUtils.h" #include "nsEnumeratorUtils.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"

View file

@ -24,7 +24,6 @@ Notes to self:
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsXPCOM.h" #include "nsXPCOM.h"
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsMemory.h"
#include "nsPrimitiveHelpers.h" #include "nsPrimitiveHelpers.h"
#include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceDefs.h"
#include "nsDirectoryService.h" #include "nsDirectoryService.h"

View file

@ -18,7 +18,6 @@
#include "nsGkAtoms.h" #include "nsGkAtoms.h"
#include "nsIUserIdleServiceInternal.h" #include "nsIUserIdleServiceInternal.h"
#include "nsIWindowsRegKey.h" #include "nsIWindowsRegKey.h"
#include "nsMemory.h"
#include "nsPrintfCString.h" #include "nsPrintfCString.h"
#include "nsQuickSort.h" #include "nsQuickSort.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"

View file

@ -10,7 +10,6 @@
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "mozilla/Services.h" #include "mozilla/Services.h"
#include "nsIObserverService.h" #include "nsIObserverService.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsXULAppAPI.h" #include "nsXULAppAPI.h"
#include "base/process_util.h" #include "base/process_util.h"

View file

@ -27,7 +27,6 @@
#include "nsError.h" #include "nsError.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsMemory.h"
#include "nsID.h" #include "nsID.h"

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsSupportsPrimitives.h" #include "nsSupportsPrimitives.h"
#include "nsMemory.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/IntegerPrintfMacros.h" #include "mozilla/IntegerPrintfMacros.h"
#include "mozilla/Sprintf.h" #include "mozilla/Sprintf.h"

View file

@ -11,7 +11,6 @@
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "xptinfo.h" #include "xptinfo.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsCRTGlue.h" #include "nsCRTGlue.h"
#include "mozilla/FloatingPoint.h" #include "mozilla/FloatingPoint.h"

View file

@ -6,7 +6,6 @@
#include "nsLinebreakConverter.h" #include "nsLinebreakConverter.h"
#include "nsMemory.h"
#include "nsCRT.h" #include "nsCRT.h"
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------

View file

@ -13,7 +13,6 @@
#include "mozilla/WinHeaderOnlyUtils.h" #include "mozilla/WinHeaderOnlyUtils.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsLocalFile.h" #include "nsLocalFile.h"
#include "nsLocalFileCommon.h" #include "nsLocalFileCommon.h"

View file

@ -22,7 +22,6 @@
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
#include "nsIClassInfoImpl.h" #include "nsIClassInfoImpl.h"
#include "nsAlgorithm.h" #include "nsAlgorithm.h"
#include "nsMemory.h"
#include "nsPipe.h" #include "nsPipe.h"
#include "nsIAsyncInputStream.h" #include "nsIAsyncInputStream.h"
#include "nsIAsyncOutputStream.h" #include "nsIAsyncOutputStream.h"

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsScriptableInputStream.h" #include "nsScriptableInputStream.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
NS_IMPL_ISUPPORTS(nsScriptableInputStream, nsIScriptableInputStream) NS_IMPL_ISUPPORTS(nsScriptableInputStream, nsIScriptableInputStream)

View file

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsSegmentedBuffer.h" #include "nsSegmentedBuffer.h"
#include "nsMemory.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"

View file

@ -17,7 +17,6 @@
#include "nsIStorageStream.h" #include "nsIStorageStream.h"
#include "nsIOutputStream.h" #include "nsIOutputStream.h"
#include "nsMemory.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/Mutex.h" #include "mozilla/Mutex.h"

View file

@ -9,7 +9,6 @@
#include "nsIStringStream.h" #include "nsIStringStream.h"
#include "nsString.h" #include "nsString.h"
#include "nsMemory.h"
#include "nsTArray.h" #include "nsTArray.h"
/** /**

View file

@ -12,7 +12,6 @@
#include "mozilla/Utf8.h" #include "mozilla/Utf8.h"
#include "nscore.h" #include "nscore.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsUTF8Utils.h" #include "nsUTF8Utils.h"

View file

@ -15,12 +15,6 @@
* Daniele Nicolodi <daniele@grinta.net> * Daniele Nicolodi <daniele@grinta.net>
*/ */
/*
* Copied from xpcom/ds/nsTextFormatter.cpp r1.22
* Changed to use nsMemory and Frozen linkage
* -- Prasad <prasad@medhas.org>
*/
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -29,7 +23,6 @@
#include "mozilla/Sprintf.h" #include "mozilla/Sprintf.h"
#include "nsCRTGlue.h" #include "nsCRTGlue.h"
#include "nsTextFormatter.h" #include "nsTextFormatter.h"
#include "nsMemory.h"
struct nsTextFormatter::SprintfStateStr { struct nsTextFormatter::SprintfStateStr {
int (*stuff)(SprintfStateStr* aState, const char16_t* aStr, uint32_t aLen); int (*stuff)(SprintfStateStr* aState, const char16_t* aStr, uint32_t aLen);

View file

@ -10,7 +10,6 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsICrashReporter.h" #include "nsICrashReporter.h"
#include "nsMemory.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsTArray.h" #include "nsTArray.h"

View file

@ -8,7 +8,6 @@
#include <stdio.h> #include <stdio.h>
#include <prthread.h> #include <prthread.h>
#include "nsExpirationTracker.h" #include "nsExpirationTracker.h"
#include "nsMemory.h"
#include "nsString.h" #include "nsString.h"
#include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceUtils.h"

View file

@ -16,7 +16,6 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsMemory.h"
#include "nsProcess.h" #include "nsProcess.h"
#include "prio.h" #include "prio.h"
#include "prenv.h" #include "prenv.h"

View file

@ -10,7 +10,6 @@
#include "ThreadDelay.h" #include "ThreadDelay.h"
#include "nsThreadManager.h" #include "nsThreadManager.h"
#include "nsThread.h" #include "nsThread.h"
#include "nsMemory.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "prinrval.h" #include "prinrval.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"