Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron

This commit is contained in:
jaggernaut%netscape.com 2003-07-20 07:47:59 +00:00
Родитель 024a2adbb2
Коммит f008bc2bad
231 изменённых файлов: 0 добавлений и 2159 удалений

Просмотреть файл

@ -68,7 +68,6 @@
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
#ifdef IBMBIDI #ifdef IBMBIDI
#include "nsBidiUtils.h" #include "nsBidiUtils.h"
//static NS_DEFINE_CID(kUBidiUtilCID, NS_UNICHARBIDIUTIL_CID);
#endif #endif
// image copy stuff // image copy stuff

Просмотреть файл

@ -73,8 +73,6 @@ typedef unsigned long HMTX;
#include "nsVoidArray.h" #include "nsVoidArray.h"
#include "nsString.h" #include "nsString.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsWidgetsCID.h"
#include "nsGfxCIID.h"
#include "plevent.h" #include "plevent.h"
#include "prprf.h" #include "prprf.h"
#include "nsIPluginHost.h" #include "nsIPluginHost.h"
@ -91,7 +89,6 @@ typedef unsigned long HMTX;
#include "prthread.h" #include "prthread.h"
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsDOMError.h" #include "nsDOMError.h"
#include "nsLayoutCID.h"
#include "nsIDOMRange.h" #include "nsIDOMRange.h"
#include "nsIURIContentListener.h" #include "nsIURIContentListener.h"
#include "nsIDOMDocument.h" #include "nsIDOMDocument.h"
@ -158,14 +155,6 @@ static PRLogModuleInfo* gLogModule = PR_NewLogModule("webshell");
//---------------------------------------------------------------------- //----------------------------------------------------------------------
//----------------------------------------------------------------------
// Class IID's
static NS_DEFINE_IID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kCDOMRangeCID, NS_RANGE_CID);
//----------------------------------------------------------------------
static PRBool static PRBool
IsOffline() IsOffline()
{ {

Просмотреть файл

@ -178,7 +178,6 @@ static NS_DEFINE_CID(kHTTPHandlerCID, NS_HTTPPROTOCOLHANDLER_CID);
static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID); static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID);
static NS_DEFINE_CID(kCharsetConverterManagerCID, static NS_DEFINE_CID(kCharsetConverterManagerCID,
NS_ICHARSETCONVERTERMANAGER_CID); NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID); // For window.find() static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID); // For window.find()
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID); static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);

Просмотреть файл

@ -47,7 +47,6 @@
#include "nsIMIMEInfo.h" #include "nsIMIMEInfo.h"
#include "nsIFile.h" #include "nsIFile.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
MimeTypeArrayImpl::MimeTypeArrayImpl(nsIDOMNavigator* navigator) MimeTypeArrayImpl::MimeTypeArrayImpl(nsIDOMNavigator* navigator)
{ {

Просмотреть файл

@ -45,7 +45,6 @@
#define LOCK_LOG(doc) #define LOCK_LOG(doc)
#define UNLOCK_LOG(doc) #define UNLOCK_LOG(doc)
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
nsEditorTxnLog::nsEditorTxnLog(nsHTMLEditorLog *aEditorLog) nsEditorTxnLog::nsEditorTxnLog(nsHTMLEditorLog *aEditorLog)
{ {

Просмотреть файл

@ -50,8 +50,6 @@
#define LOCK_TX_MANAGER(mgr) (mgr)->Lock() #define LOCK_TX_MANAGER(mgr) (mgr)->Lock()
#define UNLOCK_TX_MANAGER(mgr) (mgr)->Unlock() #define UNLOCK_TX_MANAGER(mgr) (mgr)->Unlock()
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kITransactionManagerIID, NS_ITRANSACTIONMANAGER_IID);
nsTransactionManager::nsTransactionManager(PRInt32 aMaxTransactionCount) nsTransactionManager::nsTransactionManager(PRInt32 aMaxTransactionCount)
: mMaxTransactionCount(aMaxTransactionCount), mListeners(0) : mMaxTransactionCount(aMaxTransactionCount), mListeners(0)

Просмотреть файл

@ -40,8 +40,6 @@
#include "nsTSDNotifier.h" #include "nsTSDNotifier.h"
#include "nsTextServicesDocument.h" #include "nsTextServicesDocument.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIEditActionListenerIID, NS_IEDITACTIONLISTENER_IID);
nsTSDNotifier::nsTSDNotifier(nsTextServicesDocument *aDoc) : mDoc(aDoc) nsTSDNotifier::nsTSDNotifier(nsTextServicesDocument *aDoc) : mDoc(aDoc)
{ {

Просмотреть файл

@ -40,9 +40,4 @@
#include "guids.h" #include "guids.h"
// Class IDs // Class IDs
NS_DEFINE_IID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
NS_DEFINE_IID(kHTMLEditorCID, NS_HTMLEDITOR_CID);
NS_DEFINE_CID(kCookieServiceCID, NS_COOKIESERVICE_CID);
NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
NS_DEFINE_CID(kWindowCID, NS_WINDOW_CID);

Просмотреть файл

@ -80,8 +80,6 @@
#include "nsIURI.h" #include "nsIURI.h"
#endif #endif
static NS_DEFINE_IID(kIClassInfoIID, NS_ICLASSINFO_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// nsScriptablePeer // nsScriptablePeer

Просмотреть файл

@ -30,9 +30,6 @@
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsIWidget.h" #include "nsIWidget.h"
// for NS_APPSHELL_CID
#include <nsWidgetsCID.h>
// for do_GetInterface // for do_GetInterface
#include <nsIInterfaceRequestor.h> #include <nsIInterfaceRequestor.h>
#include <nsIInterfaceRequestorUtils.h> #include <nsIInterfaceRequestorUtils.h>
@ -61,7 +58,6 @@
#include "nsIWebBrowserPrint.h" #include "nsIWebBrowserPrint.h"
#include "nsIClipboardCommands.h" #include "nsIClipboardCommands.h"
#include "docshell/nsCDefaultURIFixup.h" #include "docshell/nsCDefaultURIFixup.h"
#include "nsGfxCIID.h"
// for the focus hacking we need to do // for the focus hacking we need to do
#include <nsIFocusController.h> #include <nsIFocusController.h>
@ -81,9 +77,6 @@
#include "PtMozilla.h" #include "PtMozilla.h"
static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
static NS_DEFINE_CID(kPrintOptionsCID, NS_PRINTOPTIONS_CID);
static const char sWatcherContractID[] = "@mozilla.org/embedcomp/window-watcher;1"; static const char sWatcherContractID[] = "@mozilla.org/embedcomp/window-watcher;1";
nsIAppShell *EmbedPrivate::sAppShell = nsnull; nsIAppShell *EmbedPrivate::sAppShell = nsnull;

Просмотреть файл

@ -90,10 +90,7 @@ ph_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
NS_EXTERN_IID(kHTMLEditorCID); NS_EXTERN_IID(kHTMLEditorCID);
NS_EXTERN_IID(kCookieServiceCID); NS_EXTERN_IID(kCookieServiceCID);
NS_EXTERN_IID(kWindowCID); NS_EXTERN_IID(kWindowCID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID); static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
#define NS_PROMPTSERVICE_CID \ #define NS_PROMPTSERVICE_CID \
{0xa2112d6a, 0x0e28, 0x421f, {0xb4, 0x6a, 0x25, 0xc0, 0xb3, 0x8, 0xcb, 0xd0}} {0xa2112d6a, 0x0e28, 0x421f, {0xb4, 0x6a, 0x25, 0xc0, 0xb3, 0x8, 0xcb, 0xd0}}

Просмотреть файл

@ -26,7 +26,6 @@
#include "nsCWebBrowser.h" #include "nsCWebBrowser.h"
#include "nsIComponentManager.h" #include "nsIComponentManager.h"
#include "nsWidgetsCID.h"
#include "nsRepeater.h" #include "nsRepeater.h"
#include "nsString.h" #include "nsString.h"
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
@ -91,8 +90,6 @@
// ToolBox // ToolBox
#include <InternetConfig.h> #include <InternetConfig.h>
static NS_DEFINE_IID(kWindowCID, NS_WINDOW_CID);
const nsCString CBrowserShell::kEmptyCString; const nsCString CBrowserShell::kEmptyCString;
nsCOMPtr<nsIDragHelperService> CBrowserShell::sDragHelper; nsCOMPtr<nsIDragHelperService> CBrowserShell::sDragHelper;

Просмотреть файл

@ -43,7 +43,6 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsNetCID.h"
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsIScriptGlobalObject.h" #include "nsIScriptGlobalObject.h"
#include "nsIDOMWindow.h" #include "nsIDOMWindow.h"
@ -53,8 +52,6 @@
#include "nsIObserverService.h" #include "nsIObserverService.h"
#include "nsString.h" #include "nsString.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
// Possible behavior pref values // Possible behavior pref values
#define IMAGE_ACCEPT 0 #define IMAGE_ACCEPT 0
#define IMAGE_NOFOREIGN 1 #define IMAGE_NOFOREIGN 1

Просмотреть файл

@ -71,7 +71,6 @@
static NS_DEFINE_CID(kFrameUtilCID, NS_FRAME_UTIL_CID); static NS_DEFINE_CID(kFrameUtilCID, NS_FRAME_UTIL_CID);
static NS_DEFINE_CID(kLayoutDebuggerCID, NS_LAYOUT_DEBUGGER_CID);
nsRegressionTester::nsRegressionTester() nsRegressionTester::nsRegressionTester()

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,269 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Pierre Phaneuf <pp@ludusdesign.com>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "pratom.h"
#include "nsIFactory.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
//#include "nsIObserver.h"
#include "nsIURL.h"
#include "nsIIOService.h"
#include "nsIURL.h"
#include "nsIServiceManager.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
#include "nsPICSElementObserver.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIPICS.h"
#include "nspics.h"
#include "nsIWebShellServices.h"
#include "plstr.h"
#include "prenv.h"
//static NS_DEFINE_IID(kIObserverIID, NS_IOBSERVER_IID);
//static NS_DEFINE_IID(kObserverCID, NS_OBSERVER_CID);
static NS_DEFINE_IID(kIPICSElementObserverIID, NS_IPICSELEMENTOBSERVER_IID);
static NS_DEFINE_IID(kIElementObserverIID, NS_IELEMENTOBSERVER_IID);
static NS_DEFINE_IID(kIObserverIID, NS_IOBSERVER_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIPICSIID, NS_IPICS_IID);
static NS_DEFINE_IID(kPICSCID, NS_PICS_CID);
////////////////////////////////////////////////////////////////////////////////
// nsPICSElementObserver Implementation
NS_IMPL_ADDREF(nsPICSElementObserver) \
NS_IMPL_RELEASE(nsPICSElementObserver)
NS_INTERFACE_MAP_BEGIN(nsPICSElementObserver)
/*
Slight problem here: there is no |class nsIPICSElementObserver|,
so, this is a slightly un-orthodox entry, which will have to be
fixed before we could switch over to the table-driven mechanism.
*/
if ( aIID.Equals(kIPICSElementObserverIID) )
foundInterface = NS_STATIC_CAST(nsIElementObserver*, this);
else
NS_INTERFACE_MAP_ENTRY(nsIElementObserver)
NS_INTERFACE_MAP_ENTRY(nsIObserver)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIElementObserver)
NS_INTERFACE_MAP_END
NS_PICS nsresult NS_NewPICSElementObserver(nsIObserver** anObserver)
{
if (anObserver == NULL)
{
return NS_ERROR_NULL_POINTER;
}
nsPICSElementObserver* it = new nsPICSElementObserver();
if (it == 0) {
return NS_ERROR_OUT_OF_MEMORY;
}
return it->QueryInterface(kIPICSElementObserverIID, (void **) anObserver);
}
nsPICSElementObserver::nsPICSElementObserver()
{
}
nsPICSElementObserver::~nsPICSElementObserver(void)
{
}
const char* nsPICSElementObserver::GetTagNameAt(PRUint32 aTagIndex)
{
if (aTagIndex == 0) {
return "META";
} if (aTagIndex == 1) {
return "BODY";
}else {
return nsnull;
}
}
NS_IMETHODIMP nsPICSElementObserver::Notify(PRUint32 aDocumentID, eHTMLTags aTag,
PRUint32 numOfAttributes, const PRUnichar* nameArray[],
const PRUnichar* valueArray[])
{
if(aTag == eHTMLTag_meta) {
return Notify(aDocumentID, numOfAttributes, nameArray, valueArray);
}
return NS_OK;
}
NS_IMETHODIMP nsPICSElementObserver::Notify(PRUint32 aDocumentID, const PRUnichar* aTag,
PRUint32 numOfAttributes, const PRUnichar* nameArray[],
const PRUnichar* valueArray[])
{
return Notify(aDocumentID, numOfAttributes, nameArray, valueArray);
}
NS_IMETHODIMP nsPICSElementObserver::Notify(PRUint32 aDocumentID,
PRUint32 numOfAttributes, const PRUnichar* nameArray[],
const PRUnichar* valueArray[])
{
nsresult rv;
int status;
nsIWebShellServices* ws;
// nsString theURL(aSpec);
// char* url = ToNewCString(aSpec);
nsIURI* uaURL = nsnull;
// rv = NS_NewURL(&uaURL, nsString(aSpec));
if(numOfAttributes >= 2) {
const nsString& theValue1=valueArray[0];
char *val1 = ToNewCString(theValue1);
if(theValue1.EqualsIgnoreCase("\"PICS-LABEL\"")) {
#ifdef DEBUG
printf("\nReceived notification for a PICS-LABEl\n");
#endif
const nsString& theValue2=valueArray[1];
char *label = ToNewCString(theValue2);
if (valueArray[numOfAttributes]) {
const nsString& theURLValue=valueArray[numOfAttributes];
nsCOMPtr<nsIIOService> service(do_GetService(kIOServiceCID, &rv));
if (NS_FAILED(rv)) return rv;
nsIURI *uri = nsnull;
const char *uriStr = theURLValue.GetBuffer();
rv = service->NewURI(uriStr, nsnull, &uri);
if (NS_FAILED(rv)) return rv;
rv = uri->QueryInterface(NS_GET_IID(nsIURI), (void**)&uaURL);
NS_RELEASE(uri);
if (NS_FAILED(rv)) return rv;
}
nsIPICS *pics = NULL;
rv = nsRepository::CreateInstance(kPICSCID,
NULL,
kIPICSIID,
(void **) &pics);
if(rv == NS_OK) {
pics->GetWebShell(aDocumentID, ws);
if(ws) {
status = pics->ProcessPICSLabel(label);
if(uaURL)
pics->SetNotified(ws, uaURL, PR_TRUE);
if(status) {
if(ws) {
char * text = PR_GetEnv("NGLAYOUT_HOME");
nsString mtemplateURL(text ? text : "resource:/res/samples/picstest1.html");
// ws->LoadURL(mtemplateURL, nsnull, nsnull);
PRInt32 s;
ws->SetRendering(PR_TRUE);
ws->StopDocumentLoad();
ws->LoadDocument("resource:/res/samples/picstest1.html", nsnull, s);
}
}
}
}
}
}
return NS_OK;
}
NS_IMETHODIMP nsPICSElementObserver::Observe(nsISupports*, const PRUnichar*, const PRUnichar*)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsPICSElementObserverFactory Implementation
NS_IMPL_ISUPPORTS1(nsPICSElementObserverFactory, nsIFactory)
nsPICSElementObserverFactory::nsPICSElementObserverFactory(void)
{
}
nsPICSElementObserverFactory::~nsPICSElementObserverFactory(void)
{
}
nsresult
nsPICSElementObserverFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (! aResult)
return NS_ERROR_NULL_POINTER;
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
*aResult = nsnull;
nsresult rv;
nsIObserver* inst = nsnull;
if (NS_FAILED(rv = NS_NewPICSElementObserver(&inst)))
return rv;
if (!inst)
return NS_ERROR_OUT_OF_MEMORY;
rv = inst->QueryInterface(aIID, aResult);
if (NS_FAILED(rv)) {
*aResult = NULL;
}
return rv;
}
nsresult
nsPICSElementObserverFactory::LockFactory(PRBool aLock)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -49,8 +49,6 @@
#ifndef TX_EXE #ifndef TX_EXE
#include "nsIDOMDocument.h" #include "nsIDOMDocument.h"
#include "nsContentCID.h"
static NS_DEFINE_CID(kXMLDocumentCID, NS_XMLDOCUMENT_CID);
#endif #endif
const PRInt32 txExecutionState::kMaxRecursionDepth = 20000; const PRInt32 txExecutionState::kMaxRecursionDepth = 20000;

Просмотреть файл

@ -55,8 +55,6 @@
#include "nsUniversalDetector.h" #include "nsUniversalDetector.h"
static NS_DEFINE_CID(kUniversalDetectorCID, NS_UNIVERSAL_DETECTOR_CID);
static NS_DEFINE_CID(kUniversalStringDetectorCID, NS_UNIVERSAL_STRING_DETECTOR_CID);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUniversalXPCOMDetector); NS_GENERIC_FACTORY_CONSTRUCTOR(nsUniversalXPCOMDetector);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUniversalXPCOMStringDetector); NS_GENERIC_FACTORY_CONSTRUCTOR(nsUniversalXPCOMStringDetector);

Просмотреть файл

@ -54,9 +54,6 @@
#include "nsEscCharsetProber.h" #include "nsEscCharsetProber.h"
#include "nsLatin1Prober.h" #include "nsLatin1Prober.h"
static NS_DEFINE_CID(kUniversalDetectorCID, NS_UNIVERSAL_DETECTOR_CID);
static NS_DEFINE_CID(kUniversalStringDetectorCID, NS_UNIVERSAL_STRING_DETECTOR_CID);
nsUniversalDetector::nsUniversalDetector() nsUniversalDetector::nsUniversalDetector()
{ {
mDone = PR_FALSE; mDone = PR_FALSE;

Просмотреть файл

@ -85,7 +85,6 @@
#define morseAssert(x,y) 0 #define morseAssert(x,y) 0
#endif #endif
static NS_DEFINE_IID(kIDOMHTMLOptionElementIID, NS_IDOMHTMLOPTIONELEMENT_IID);
#include "prlong.h" #include "prlong.h"
#include "prinrval.h" #include "prinrval.h"

Просмотреть файл

@ -526,8 +526,6 @@ NS_IMETHODIMP
return NS_OK; return NS_OK;
} }
static NS_DEFINE_CID(kMemoryCID, NS_MEMORY_CID);
/** /**
* Internally used to track down the encoding to be used at the headers * Internally used to track down the encoding to be used at the headers
* or parameters. We know the version is legal, or we couldn't have * or parameters. We know the version is legal, or we couldn't have

Просмотреть файл

@ -48,13 +48,6 @@
#define MAXCOL 4096 // Maximum columns in line buffer #define MAXCOL 4096 // Maximum columns in line buffer
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kILineTermIID, MOZILINETERM_IID);
static NS_DEFINE_IID(kILineTermAuxIID, MOZILINETERMAUX_IID);
static NS_DEFINE_IID(kLineTermCID, MOZLINETERM_CID);
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// mozLineTerm implementaion // mozLineTerm implementaion
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -53,7 +53,6 @@
#include "mozXMLTermStream.h" #include "mozXMLTermStream.h"
static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID); static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// mozXMLTermStream implementation // mozXMLTermStream implementation

Просмотреть файл

@ -58,7 +58,6 @@ nsDeviceContextSpecFactoryBeOS :: ~nsDeviceContextSpecFactoryBeOS()
{ {
} }
static NS_DEFINE_IID(kIDeviceContextSpecIID, NS_IDEVICE_CONTEXT_SPEC_IID);
static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID); static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID);
NS_IMPL_ISUPPORTS1(nsDeviceContextSpecFactoryBeOS, nsIDeviceContextSpecFactory) NS_IMPL_ISUPPORTS1(nsDeviceContextSpecFactoryBeOS, nsIDeviceContextSpecFactory)

Просмотреть файл

@ -45,7 +45,6 @@
static int nRegions; static int nRegions;
#endif #endif
static NS_DEFINE_IID(kRegionIID, NS_IREGION_IID);
nsRegionBeOS :: nsRegionBeOS() nsRegionBeOS :: nsRegionBeOS()
{ {

Просмотреть файл

@ -47,7 +47,6 @@
#include <Polygon.h> #include <Polygon.h>
#include <math.h> #include <math.h>
static NS_DEFINE_IID(kRenderingContextIID, NS_IRENDERING_CONTEXT_IID);
NS_IMPL_THREADSAFE_ISUPPORTS1(nsRenderingContextBeOS, nsIRenderingContext) NS_IMPL_THREADSAFE_ISUPPORTS1(nsRenderingContextBeOS, nsIRenderingContext)

Просмотреть файл

@ -53,7 +53,6 @@
#define USER_DEFINED "x-user-def" #define USER_DEFINED "x-user-def"
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID); static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_IID(kIFontMetricsIID, NS_IFONT_METRICS_IID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID); static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID);
static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID); static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);

Просмотреть файл

@ -58,7 +58,6 @@ nsDeviceContextSpecFactoryPh :: ~nsDeviceContextSpecFactoryPh()
static NS_DEFINE_IID(kIDeviceContextSpecIID, NS_IDEVICE_CONTEXT_SPEC_IID); static NS_DEFINE_IID(kIDeviceContextSpecIID, NS_IDEVICE_CONTEXT_SPEC_IID);
static NS_DEFINE_IID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID); static NS_DEFINE_IID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID);
static NS_DEFINE_CID(kPrintOptionsCID, NS_PRINTOPTIONS_CID);
NS_IMPL_ISUPPORTS1(nsDeviceContextSpecFactoryPh, nsIDeviceContextSpecFactory) NS_IMPL_ISUPPORTS1(nsDeviceContextSpecFactoryPh, nsIDeviceContextSpecFactory)

Просмотреть файл

@ -57,8 +57,6 @@
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsIPref.h" #include "nsIPref.h"
static NS_DEFINE_CID( kPrintOptionsCID, NS_PRINTOPTIONS_CID );
nsDeviceContextSpecPh :: nsDeviceContextSpecPh() nsDeviceContextSpecPh :: nsDeviceContextSpecPh()
{ {
NS_INIT_ISUPPORTS(); NS_INIT_ISUPPORTS();

Просмотреть файл

@ -57,7 +57,6 @@ static nsIPref* gPref = nsnull;
#undef USER_DEFINED #undef USER_DEFINED
#define USER_DEFINED "x-user-def" #define USER_DEFINED "x-user-def"
static NS_DEFINE_IID(kIFontMetricsIID, NS_IFONT_METRICS_IID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
nsFontMetricsPh::nsFontMetricsPh() nsFontMetricsPh::nsFontMetricsPh()

Просмотреть файл

@ -178,7 +178,6 @@ printf( "MyPiResizeImage\n" );
//#define ALLOW_PHIMAGE_CACHEING //#define ALLOW_PHIMAGE_CACHEING
#define IsFlagSet(a,b) (a & b) #define IsFlagSet(a,b) (a & b)
// static NS_DEFINE_IID(kIImageIID, NS_IIMAGE_IID);
NS_IMPL_ISUPPORTS1(nsImagePh, nsIImage) NS_IMPL_ISUPPORTS1(nsImagePh, nsIImage)

Просмотреть файл

@ -44,7 +44,6 @@
#include "nsPhGfxLog.h" #include "nsPhGfxLog.h"
static NS_DEFINE_IID(kRegionIID, NS_IREGION_IID);
#define tulx t->rect.ul.x #define tulx t->rect.ul.x
#define tuly t->rect.ul.y #define tuly t->rect.ul.y

Просмотреть файл

@ -50,9 +50,6 @@
#include <mem.h> #include <mem.h>
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
static NS_DEFINE_IID(kIRenderingContextIID, NS_IRENDERING_CONTEXT_IID);
static NS_DEFINE_IID(kIDrawingSurfaceIID, NS_IDRAWING_SURFACE_IID);
static NS_DEFINE_IID(kDrawingSurfaceCID, NS_DRAWING_SURFACE_CID);
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID); static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
@ -903,7 +900,6 @@ void nsRenderingContextPh::ApplyClipping( PhGC_t *gc )
void nsRenderingContextPh::CreateClipRegion( ) void nsRenderingContextPh::CreateClipRegion( )
{ {
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
if( mClipRegion ) return; if( mClipRegion ) return;
PRUint32 w, h; PRUint32 w, h;

Просмотреть файл

@ -92,7 +92,6 @@ static PRLogModuleInfo *nsPostScriptObjLM = PR_NewLogModule("nsPostScriptObj");
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID); static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_IID(kICharsetConverterManagerIID, NS_ICHARSETCONVERTERMANAGER_IID);
/* /*
* global * global

Просмотреть файл

@ -65,8 +65,6 @@
static NS_DEFINE_IID(kIRenderingContextIID, NS_IRENDERING_CONTEXT_IID); static NS_DEFINE_IID(kIRenderingContextIID, NS_IRENDERING_CONTEXT_IID);
static NS_DEFINE_IID(kIRenderingContextWinIID, NS_IRENDERING_CONTEXT_WIN_IID); static NS_DEFINE_IID(kIRenderingContextWinIID, NS_IRENDERING_CONTEXT_WIN_IID);
static NS_DEFINE_IID(kIDrawingSurfaceIID, NS_IDRAWING_SURFACE_IID);
static NS_DEFINE_IID(kDrawingSurfaceCID, NS_DRAWING_SURFACE_CID);
#define FLAG_CLIP_VALID 0x0001 #define FLAG_CLIP_VALID 0x0001
#define FLAG_CLIP_CHANGED 0x0002 #define FLAG_CLIP_CHANGED 0x0002

Просмотреть файл

@ -107,9 +107,6 @@ extern nsFontVendorName sVendorNamesList[];
extern nsulCodePageRangeLanguage ulCodePageRange1Language[]; extern nsulCodePageRangeLanguage ulCodePageRange1Language[];
extern nsulCodePageRangeLanguage ulCodePageRange2Language[]; extern nsulCodePageRangeLanguage ulCodePageRange2Language[];
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kCharSetManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
nsHashtable* nsFT2FontCatalog::sVendorNames = nsnull; nsHashtable* nsFT2FontCatalog::sVendorNames = nsnull;
nsIPref* nsFT2FontCatalog::sPref = nsnull; nsIPref* nsFT2FontCatalog::sPref = nsnull;

Просмотреть файл

@ -67,7 +67,6 @@
#endif /* USE_XPRINT */ #endif /* USE_XPRINT */
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_IID(kDeviceContextIID, NS_IDEVICE_CONTEXT_IID);
#define XLIB_DEFAULT_FONT1 "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" #define XLIB_DEFAULT_FONT1 "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1"
#define XLIB_DEFAULT_FONT2 "-*-fixed-medium-r-*-*-*-120-*-*-*-*-*-*" #define XLIB_DEFAULT_FONT2 "-*-fixed-medium-r-*-*-*-120-*-*-*-*-*-*"

Просмотреть файл

@ -268,9 +268,6 @@ struct nsFontPropertyNameXlib
int mValue; int mValue;
}; };
static NS_DEFINE_CID(kCharSetManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kSaveAsCharsetCID, NS_SAVEASCHARSET_CID);
static void SetCharsetLangGroup(nsFontMetricsXlibContext *aFmctx, nsFontCharSetInfoXlib* aCharSetInfo); static void SetCharsetLangGroup(nsFontMetricsXlibContext *aFmctx, nsFontCharSetInfoXlib* aCharSetInfo);
static int SingleByteConvert(nsFontCharSetInfoXlib* aSelf, XFontStruct* aFont, static int SingleByteConvert(nsFontCharSetInfoXlib* aSelf, XFontStruct* aFont,

Просмотреть файл

@ -49,7 +49,6 @@ static int nRegions;
Region nsRegionXlib::copyRegion = 0; Region nsRegionXlib::copyRegion = 0;
static NS_DEFINE_IID(kRegionIID, NS_IREGION_IID);
nsRegionXlib::nsRegionXlib() nsRegionXlib::nsRegionXlib()
{ {

Просмотреть файл

@ -74,7 +74,6 @@
#endif #endif
static NS_DEFINE_IID(kIHTMLContentSinkIID, NS_IHTML_CONTENT_SINK_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIDTDIID, NS_IDTD_IID); static NS_DEFINE_IID(kIDTDIID, NS_IDTD_IID);
static NS_DEFINE_IID(kClassIID, NS_INAVHTML_DTD_IID); static NS_DEFINE_IID(kClassIID, NS_INAVHTML_DTD_IID);

Просмотреть файл

@ -68,7 +68,6 @@ static NS_DEFINE_IID(kIHTMLContentSinkIID, NS_IHTML_CONTENT_SINK_IID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIDTDIID, NS_IDTD_IID); static NS_DEFINE_IID(kIDTDIID, NS_IDTD_IID);
static NS_DEFINE_IID(kClassIID, NS_IOTHERHTML_DTD_IID); static NS_DEFINE_IID(kClassIID, NS_IOTHERHTML_DTD_IID);
static NS_DEFINE_IID(kParserServiceCID, NS_PARSERSERVICE_CID);
static const char kVerificationDir[] = "c:/temp"; static const char kVerificationDir[] = "c:/temp";

Просмотреть файл

@ -79,9 +79,6 @@ static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_CID(kCParserCID, NS_PARSER_CID); static NS_DEFINE_CID(kCParserCID, NS_PARSER_CID);
static NS_DEFINE_IID(kIParserIID, NS_IPARSER_IID); static NS_DEFINE_IID(kIParserIID, NS_IPARSER_IID);
static NS_DEFINE_IID(kExpatDriverCID, NS_EXPAT_DRIVER_CID);
static NS_DEFINE_CID(kNavDTDCID, NS_CNAVDTD_CID);
static NS_DEFINE_CID(kViewSourceDTDCID, NS_VIEWSOURCE_DTD_CID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
//------------------------------------------------------------------- //-------------------------------------------------------------------

Просмотреть файл

@ -44,9 +44,6 @@
#include "nsITokenizer.h" #include "nsITokenizer.h"
#include "nsDTDUtils.h" #include "nsDTDUtils.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kClassIID, NS_PARSER_NODE_IID);
static NS_DEFINE_IID(kIParserNodeIID, NS_IPARSER_NODE_IID);
static static
const nsString& GetEmptyString() { const nsString& GetEmptyString() {

Просмотреть файл

@ -54,8 +54,6 @@ static NS_DEFINE_IID(kLoggingSinkCID, NS_LOGGING_SINK_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
// Interface IID's // Interface IID's
static NS_DEFINE_IID(kIParserIID, NS_IPARSER_IID);
static NS_DEFINE_IID(kILoggingSinkIID, NS_ILOGGING_SINK_IID);
//---------------------------------------------------------------------- //----------------------------------------------------------------------

Просмотреть файл

@ -53,11 +53,6 @@
#include "nsClassicDetectors.h" #include "nsClassicDetectors.h"
static NS_DEFINE_CID(kJAClassicDetectorCID, NS_JA_CLASSIC_DETECTOR_CID);
static NS_DEFINE_CID(kJAClassicStringDetectorCID, NS_JA_CLASSIC_STRING_DETECTOR_CID);
static NS_DEFINE_CID(kKOClassicDetectorCID, NS_KO_CLASSIC_DETECTOR_CID);
static NS_DEFINE_CID(kKOClassicStringDetectorCID, NS_KO_CLASSIC_STRING_DETECTOR_CID);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsJACharsetClassicDetector); NS_GENERIC_FACTORY_CONSTRUCTOR(nsJACharsetClassicDetector);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsJAStringCharsetClassicDetector); NS_GENERIC_FACTORY_CONSTRUCTOR(nsJAStringCharsetClassicDetector);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsKOCharsetClassicDetector); NS_GENERIC_FACTORY_CONSTRUCTOR(nsKOCharsetClassicDetector);

Просмотреть файл

@ -46,7 +46,6 @@
#include "nsDetectionAdaptor.h" #include "nsDetectionAdaptor.h"
#include "nsIContentSink.h" #include "nsIContentSink.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
//-------------------------------------------------------------- //--------------------------------------------------------------
NS_IMETHODIMP nsMyObserver::Notify( NS_IMETHODIMP nsMyObserver::Notify(

Просмотреть файл

@ -44,8 +44,6 @@
// XXX doc me // XXX doc me
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDocumentCharsetInfo, nsIDocumentCharsetInfo); NS_IMPL_THREADSAFE_ISUPPORTS1(nsDocumentCharsetInfo, nsIDocumentCharsetInfo);
nsDocumentCharsetInfo::nsDocumentCharsetInfo() nsDocumentCharsetInfo::nsDocumentCharsetInfo()

Просмотреть файл

@ -47,9 +47,7 @@
#include "nsIHttpChannel.h" #include "nsIHttpChannel.h"
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIWebShellServicesIID, NS_IWEB_SHELL_SERVICES_IID);
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
NS_IMETHODIMP nsObserverBase::NotifyWebShell(nsISupports* aWebShell, NS_IMETHODIMP nsObserverBase::NotifyWebShell(nsISupports* aWebShell,

Просмотреть файл

@ -51,9 +51,6 @@
#include "nsI18nCompatibility.h" #include "nsI18nCompatibility.h"
#include "nsIFile.h" #include "nsIFile.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kI18nCompatibilityCID, NS_I18NCOMPATIBILITY_CID);
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -40,8 +40,6 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Global functions and data [declaration] // Global functions and data [declaration]
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
#define ENCODER_NAME_BASE "Unicode Encoder-" #define ENCODER_NAME_BASE "Unicode Encoder-"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsULE) NS_GENERIC_FACTORY_CONSTRUCTOR(nsULE)

Просмотреть файл

@ -46,8 +46,6 @@
#include "prprf.h" #include "prprf.h"
#include <Script.h> #include <Script.h>
NS_DEFINE_IID(kMacLocaleCID, NS_MACLOCALE_CID);
struct iso_lang_map struct iso_lang_map
{ {
char* iso_code; char* iso_code;

Просмотреть файл

@ -39,8 +39,6 @@
#include "nsLocaleCID.h" #include "nsLocaleCID.h"
#include "prprf.h" #include "prprf.h"
NS_DEFINE_IID(kOS2LocaleCID, NS_OS2LOCALE_CID);
/* nsOS2Locale ISupports */ /* nsOS2Locale ISupports */
NS_IMPL_ISUPPORTS1(nsOS2Locale,nsIOS2Locale) NS_IMPL_ISUPPORTS1(nsOS2Locale,nsIOS2Locale)

Просмотреть файл

@ -47,8 +47,6 @@
#include <Windows.h> #include <Windows.h>
#include "nsCRT.h" #include "nsCRT.h"
NS_DEFINE_IID(kIWin32LocaleImplCID, NS_WIN32LOCALE_CID);
#define USER_DEFINED_PRIMARYLANG 0x0200 #define USER_DEFINED_PRIMARYLANG 0x0200
#define USER_DEFINED_SUBLANGUAGE 0x20 #define USER_DEFINED_SUBLANGUAGE 0x20

Просмотреть файл

@ -80,7 +80,6 @@
// Collation // Collation
// //
static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID); static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID);
static NS_DEFINE_CID(kCollationCID, NS_COLLATION_CID);
// Date and Time // Date and Time
// //
static NS_DEFINE_CID(kDateTimeFormatCID, NS_DATETIMEFORMAT_CID); static NS_DEFINE_CID(kDateTimeFormatCID, NS_DATETIMEFORMAT_CID);

Просмотреть файл

@ -57,8 +57,6 @@ NS_DEFINE_CID(kLocaleFactoryCID, NS_LOCALEFACTORY_CID);
NS_DEFINE_IID(kILocaleFactoryIID, NS_ILOCALEFACTORY_IID); NS_DEFINE_IID(kILocaleFactoryIID, NS_ILOCALEFACTORY_IID);
NS_DEFINE_IID(kILocaleServiceIID,NS_ILOCALESERVICE_IID); NS_DEFINE_IID(kILocaleServiceIID,NS_ILOCALESERVICE_IID);
NS_DEFINE_CID(kLocaleServiceCID,NS_LOCALESERVICE_CID); NS_DEFINE_CID(kLocaleServiceCID,NS_LOCALESERVICE_CID);
NS_DEFINE_CID(kLocaleCID, NS_LOCALE_CID);
NS_DEFINE_IID(kILocaleIID, NS_ILOCALE_IID);
NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID); NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);

Просмотреть файл

@ -52,8 +52,6 @@ nsLWBreakerFImp::~nsLWBreakerFImp()
NS_DEFINE_IID(kILineBreakerFactoryIID, NS_ILINEBREAKERFACTORY_IID); NS_DEFINE_IID(kILineBreakerFactoryIID, NS_ILINEBREAKERFACTORY_IID);
NS_DEFINE_IID(kIWordBreakerFactoryIID, NS_IWORDBREAKERFACTORY_IID); NS_DEFINE_IID(kIWordBreakerFactoryIID, NS_IWORDBREAKERFACTORY_IID);
NS_DEFINE_IID(kILineBreakerIID, NS_ILINEBREAKER_IID);
NS_DEFINE_IID(kIWordBreakerIID, NS_IWORDBREAKER_IID);
NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);

Просмотреть файл

@ -55,9 +55,6 @@
// //
#define TEST_URL "resource:/res/strres.properties" #define TEST_URL "resource:/res/strres.properties"
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// let add some locale stuff // let add some locale stuff

Просмотреть файл

@ -65,7 +65,6 @@
#include "nsNativeUConvService.h" #include "nsNativeUConvService.h"
static NS_DEFINE_CID(kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID); static NS_DEFINE_CID(kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);
static NS_DEFINE_CID(kCharsetAliasCID, NS_CHARSETALIAS_CID); static NS_DEFINE_CID(kCharsetAliasCID, NS_CHARSETALIAS_CID);
// Pattern of cached, commonly used, single byte decoder // Pattern of cached, commonly used, single byte decoder

Просмотреть файл

@ -49,9 +49,6 @@
#include "nsIPlatformCharset.h" #include "nsIPlatformCharset.h"
static NS_DEFINE_CID(kIScriptableUnicodeConverterCID, NS_ISCRIPTABLEUNICODECONVERTER_CID);
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static PRInt32 gInstanceCount = 0; static PRInt32 gInstanceCount = 0;
/* Implementation file */ /* Implementation file */

Просмотреть файл

@ -48,7 +48,6 @@
#include "nsTextToSubURI.h" #include "nsTextToSubURI.h"
#include "nsCRT.h" #include "nsCRT.h"
static NS_DEFINE_CID(kITextToSubURIIID, NS_ITEXTTOSUBURI_IID);
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID); static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
nsTextToSubURI::nsTextToSubURI() nsTextToSubURI::nsTextToSubURI()

Просмотреть файл

@ -57,6 +57,3 @@
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Global functions and data [declaration] // Global functions and data [declaration]
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_CID(kTextToSubURICID, NS_TEXTTOSUBURI_CID);

Просмотреть файл

@ -534,8 +534,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO2022CNToUnicode);
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Global functions and data [declaration] // Global functions and data [declaration]
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
#define DECODER_NAME_BASE "Unicode Decoder-" #define DECODER_NAME_BASE "Unicode Decoder-"
#define ENCODER_NAME_BASE "Unicode Encoder-" #define ENCODER_NAME_BASE "Unicode Encoder-"

Просмотреть файл

@ -51,7 +51,6 @@
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID); static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
static NS_DEFINE_IID(kICharsetConverterManagerIID, NS_ICHARSETCONVERTERMANAGER_IID);
static NS_DEFINE_CID(kPlatformCharsetCID, NS_PLATFORMCHARSET_CID); static NS_DEFINE_CID(kPlatformCharsetCID, NS_PLATFORMCHARSET_CID);
//#define TEST_IS_REPRESENTABLE //#define TEST_IS_REPRESENTABLE

Просмотреть файл

@ -73,8 +73,6 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Global functions and data [declaration] // Global functions and data [declaration]
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
#define DECODER_NAME_BASE "Unicode Decoder-" #define DECODER_NAME_BASE "Unicode Decoder-"
#define ENCODER_NAME_BASE "Unicode Encoder-" #define ENCODER_NAME_BASE "Unicode Encoder-"

Просмотреть файл

@ -39,11 +39,8 @@
#include "nsITextTransform.h" #include "nsITextTransform.h"
#include "pratom.h" #include "pratom.h"
#include "nsUUDll.h" #include "nsUUDll.h"
#include "nsHankakuToZenkakuCID.h"
#include "nsTextTransformFactory.h" #include "nsTextTransformFactory.h"
NS_DEFINE_CID(kHankakuToZenkakuCID, NS_HANKAKUTOZENKAKU_CID);
// Basic mapping from Hankaku to Zenkaku // Basic mapping from Hankaku to Zenkaku
// Nigori and Maru is take care out side this basic mapping // Nigori and Maru is take care out side this basic mapping
static const PRUnichar gBasicMapping[0x40] = static const PRUnichar gBasicMapping[0x40] =

Просмотреть файл

@ -59,7 +59,6 @@ NS_DEFINE_CID(kUnicharUtilCID, NS_UNICHARUTIL_CID);
NS_DEFINE_IID(kCaseConversionIID, NS_ICASECONVERSION_IID); NS_DEFINE_IID(kCaseConversionIID, NS_ICASECONVERSION_IID);
NS_DEFINE_CID(kEntityConverterCID, NS_ENTITYCONVERTER_CID); NS_DEFINE_CID(kEntityConverterCID, NS_ENTITYCONVERTER_CID);
NS_DEFINE_CID(kSaveAsCharsetCID, NS_SAVEASCHARSET_CID); NS_DEFINE_CID(kSaveAsCharsetCID, NS_SAVEASCHARSET_CID);
NS_DEFINE_IID(kIPersistentPropertiesIID,NS_IPERSISTENTPROPERTIES_IID);
NS_DEFINE_CID(kUnicodeNormalizerCID, NS_UNICODE_NORMALIZER_CID); NS_DEFINE_CID(kUnicodeNormalizerCID, NS_UNICODE_NORMALIZER_CID);
#define TESTLEN 29 #define TESTLEN 29

Просмотреть файл

@ -79,8 +79,6 @@
//------------------------------END OF IBM BIDI-------------------------------- //------------------------------END OF IBM BIDI--------------------------------
#endif //IBMBIDI #endif //IBMBIDI
static NS_DEFINE_CID(kLookAndFeelCID, NS_LOOKANDFEEL_CID);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
nsCaret::nsCaret() nsCaret::nsCaret()

Просмотреть файл

@ -79,8 +79,6 @@
//------------------------------END OF IBM BIDI-------------------------------- //------------------------------END OF IBM BIDI--------------------------------
#endif //IBMBIDI #endif //IBMBIDI
static NS_DEFINE_CID(kLookAndFeelCID, NS_LOOKANDFEEL_CID);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
nsCaret::nsCaret() nsCaret::nsCaret()

Просмотреть файл

@ -68,7 +68,6 @@
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
#ifdef IBMBIDI #ifdef IBMBIDI
#include "nsBidiUtils.h" #include "nsBidiUtils.h"
//static NS_DEFINE_CID(kUBidiUtilCID, NS_UNICHARBIDIUTIL_CID);
#endif #endif
// image copy stuff // image copy stuff

Просмотреть файл

@ -568,8 +568,6 @@ nsContentDLF::CreateXULDocumentFromStream(nsIInputStream& aXULStream,
return status; return status;
} }
static NS_DEFINE_IID(kDocumentFactoryImplCID, NS_CONTENT_DOCUMENT_LOADER_FACTORY_CID);
static nsresult static nsresult
RegisterTypes(nsICategoryManager* aCatMgr, RegisterTypes(nsICategoryManager* aCatMgr,
const char* const* aTypes) const char* const* aTypes)

Просмотреть файл

@ -64,8 +64,6 @@
#include "nsRegion.h" #include "nsRegion.h"
#include "nsLayoutErrors.h" #include "nsLayoutErrors.h"
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
#ifdef NS_DEBUG #ifdef NS_DEBUG
#undef NOISY #undef NOISY
#else #else

Просмотреть файл

@ -84,7 +84,6 @@ static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);
static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printsettings-service;1"; static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printsettings-service;1";
// //
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
#include "prlog.h" #include "prlog.h"
#ifdef PR_LOGGING #ifdef PR_LOGGING

Просмотреть файл

@ -64,8 +64,6 @@
#include "nsRegion.h" #include "nsRegion.h"
#include "nsLayoutErrors.h" #include "nsLayoutErrors.h"
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
#ifdef NS_DEBUG #ifdef NS_DEBUG
#undef NOISY #undef NOISY
#else #else

Просмотреть файл

@ -84,7 +84,6 @@ static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);
static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printsettings-service;1"; static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printsettings-service;1";
// //
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);
#include "prlog.h" #include "prlog.h"
#ifdef PR_LOGGING #ifdef PR_LOGGING

Просмотреть файл

@ -45,8 +45,6 @@
#include "nsAddrDatabase.h" #include "nsAddrDatabase.h"
#include "nsIAddrBookSession.h" #include "nsIAddrBookSession.h"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
nsAbRDFResource::nsAbRDFResource(void) nsAbRDFResource::nsAbRDFResource(void)
{ {
mDatabase = nsnull; mDatabase = nsnull;

Просмотреть файл

@ -78,7 +78,6 @@ const char *nsMsgSearchAdapter::m_kImapNotSeen = " UNSEEN ";
const char *nsMsgSearchAdapter::m_kImapNotAnswered = " UNANSWERED "; const char *nsMsgSearchAdapter::m_kImapNotAnswered = " UNANSWERED ";
const char *nsMsgSearchAdapter::m_kImapCharset = " CHARSET "; const char *nsMsgSearchAdapter::m_kImapCharset = " CHARSET ";
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
#define PREF_CUSTOM_HEADERS "mailnews.customHeaders" #define PREF_CUSTOM_HEADERS "mailnews.customHeaders"
NS_IMETHODIMP nsMsgSearchAdapter::FindTargetFolder(const nsMsgResultElement *,nsIMsgFolder * *) NS_IMETHODIMP nsMsgSearchAdapter::FindTargetFolder(const nsMsgResultElement *,nsIMsgFolder * *)

Просмотреть файл

@ -49,9 +49,6 @@
#include "nsMsgUtils.h" #include "nsMsgUtils.h"
#include "netCore.h" #include "netCore.h"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
NS_IMPL_THREADSAFE_ADDREF(nsCopyMessageStreamListener) NS_IMPL_THREADSAFE_ADDREF(nsCopyMessageStreamListener)
NS_IMPL_THREADSAFE_RELEASE(nsCopyMessageStreamListener) NS_IMPL_THREADSAFE_RELEASE(nsCopyMessageStreamListener)

Просмотреть файл

@ -144,7 +144,6 @@
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID); static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kMsgSendLaterCID, NS_MSGSENDLATER_CID); static NS_DEFINE_CID(kMsgSendLaterCID, NS_MSGSENDLATER_CID);
static NS_DEFINE_CID(kMsgPrintEngineCID, NS_MSG_PRINTENGINE_CID);
#define FOUR_K 4096 #define FOUR_K 4096
#define MESSENGER_SAVE_DIR_PREF_NAME "messenger.save.dir" #define MESSENGER_SAVE_DIR_PREF_NAME "messenger.save.dir"

Просмотреть файл

@ -54,7 +54,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsIDialogParamBlock.h" #include "nsIDialogParamBlock.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
NS_IMPL_THREADSAFE_ADDREF(nsMessengerBootstrap); NS_IMPL_THREADSAFE_ADDREF(nsMessengerBootstrap);

Просмотреть файл

@ -55,7 +55,6 @@
#include "nsIMsgAccountManager.h" #include "nsIMsgAccountManager.h"
#include "nsIMsgMailSession.h" #include "nsIMsgMailSession.h"
static NS_DEFINE_CID(kMsgIdentityCID, NS_MSGIDENTITY_CID);
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
NS_IMPL_ISUPPORTS1(nsMsgAccount, nsIMsgAccount) NS_IMPL_ISUPPORTS1(nsMsgAccount, nsIMsgAccount)

Просмотреть файл

@ -97,7 +97,6 @@
static NS_DEFINE_CID(kMsgAccountCID, NS_MSGACCOUNT_CID); static NS_DEFINE_CID(kMsgAccountCID, NS_MSGACCOUNT_CID);
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID); static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
static NS_DEFINE_CID(kMsgBiffManagerCID, NS_MSGBIFFMANAGER_CID);
static NS_DEFINE_CID(kMsgFolderCacheCID, NS_MSGFOLDERCACHE_CID); static NS_DEFINE_CID(kMsgFolderCacheCID, NS_MSGFOLDERCACHE_CID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);

Просмотреть файл

@ -60,7 +60,6 @@
#include "nsMsgLocalFolderHdrs.h" #include "nsMsgLocalFolderHdrs.h"
static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID); static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID);
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// nsFolderCompactState // nsFolderCompactState
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -64,8 +64,6 @@
#include "nsIMsgFolder.h" // TO include biffState enum. Change to bool later... #include "nsIMsgFolder.h" // TO include biffState enum. Change to bool later...
#include "nsArray.h" #include "nsArray.h"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
nsIRDFResource* nsMsgFolderDataSource::kNC_Child = nsnull; nsIRDFResource* nsMsgFolderDataSource::kNC_Child = nsnull;
nsIRDFResource* nsMsgFolderDataSource::kNC_Folder= nsnull; nsIRDFResource* nsMsgFolderDataSource::kNC_Folder= nsnull;
nsIRDFResource* nsMsgFolderDataSource::kNC_Name= nsnull; nsIRDFResource* nsMsgFolderDataSource::kNC_Name= nsnull;

Просмотреть файл

@ -83,7 +83,6 @@
#define PREF_MAIL_WARN_FILTER_CHANGED "mail.warn_filter_changed" #define PREF_MAIL_WARN_FILTER_CHANGED "mail.warn_filter_changed"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID); static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID); static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID);
nsrefcnt nsMsgFolder::gInstanceCount = 0; nsrefcnt nsMsgFolder::gInstanceCount = 0;

Просмотреть файл

@ -63,7 +63,6 @@
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID); static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID); static NS_DEFINE_CID(kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
NS_IMPL_THREADSAFE_ADDREF(nsMsgProtocol) NS_IMPL_THREADSAFE_ADDREF(nsMsgProtocol)
NS_IMPL_THREADSAFE_RELEASE(nsMsgProtocol) NS_IMPL_THREADSAFE_RELEASE(nsMsgProtocol)

Просмотреть файл

@ -37,7 +37,6 @@
#include "nsMsgTxn.h" #include "nsMsgTxn.h"
#include "nsIMsgHdr.h" #include "nsIMsgHdr.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
NS_IMPL_THREADSAFE_ADDREF(nsMsgTxn) NS_IMPL_THREADSAFE_ADDREF(nsMsgTxn)
NS_IMPL_THREADSAFE_RELEASE(nsMsgTxn) NS_IMPL_THREADSAFE_RELEASE(nsMsgTxn)

Просмотреть файл

@ -439,13 +439,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsLocalStringService)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// msgdb factories // msgdb factories
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID);
static NS_DEFINE_CID(kCNewsDB, NS_NEWSDB_CID);
static NS_DEFINE_CID(kCImapDB, NS_IMAPDB_CID);
static NS_DEFINE_CID(kCMsgRetentionSettings, NS_MSG_RETENTIONSETTINGS_CID);
static NS_DEFINE_CID(kCMsgDownloadSettings, NS_MSG_DOWNLOADSETTINGS_CID);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailDatabase)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNewsDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsNewsDatabase)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsImapMailDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsImapMailDatabase)

Просмотреть файл

@ -117,7 +117,6 @@
#include "nsIMsgMdnGenerator.h" #include "nsIMsgMdnGenerator.h"
// Defines.... // Defines....
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static NS_DEFINE_CID(kDateTimeFormatCID, NS_DATETIMEFORMAT_CID); static NS_DEFINE_CID(kDateTimeFormatCID, NS_DATETIMEFORMAT_CID);
static PRInt32 GetReplyOnTop() static PRInt32 GetReplyOnTop()
@ -278,8 +277,6 @@ NS_IMPL_ISUPPORTS2(nsMsgCompose, nsIMsgCompose, nsISupportsWeakReference)
// Once we are here, convert the data which we know to be UTF-8 to UTF-16 // Once we are here, convert the data which we know to be UTF-8 to UTF-16
// for insertion into the editor // for insertion into the editor
// //
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
nsresult nsresult
GetChildOffset(nsIDOMNode *aChild, nsIDOMNode *aParent, PRInt32 &aOffset) GetChildOffset(nsIDOMNode *aChild, nsIDOMNode *aParent, PRInt32 &aOffset)
{ {

Просмотреть файл

@ -68,9 +68,6 @@
#include "nsMsgBaseCID.h" #include "nsMsgBaseCID.h"
// CID's needed
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
// //
// Implementation... // Implementation...
// //

Просмотреть файл

@ -82,7 +82,6 @@ typedef struct _findServerByHostnameEntry {
static NS_DEFINE_CID(kCSmtpUrlCID, NS_SMTPURL_CID); static NS_DEFINE_CID(kCSmtpUrlCID, NS_SMTPURL_CID);
static NS_DEFINE_CID(kCMailtoUrlCID, NS_MAILTOURL_CID); static NS_DEFINE_CID(kCMailtoUrlCID, NS_MAILTOURL_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
// foward declarations... // foward declarations...
nsresult nsresult

Просмотреть файл

@ -59,8 +59,6 @@
#include "nsMsgSend.h" #include "nsMsgSend.h"
#include "nsIStreamConverterService.h" #include "nsIStreamConverterService.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
NS_IMPL_ISUPPORTS6(nsURLFetcher, nsIURLFetcher, nsIStreamListener, nsIURIContentListener, nsIInterfaceRequestor, nsIWebProgressListener, nsISupportsWeakReference) NS_IMPL_ISUPPORTS6(nsURLFetcher, nsIURLFetcher, nsIStreamListener, nsIURIContentListener, nsIInterfaceRequestor, nsIWebProgressListener, nsISupportsWeakReference)

Просмотреть файл

@ -47,13 +47,6 @@
#include "nsNewsDatabase.h" #include "nsNewsDatabase.h"
#include "nsImapMailDatabase.h" #include "nsImapMailDatabase.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID);
static NS_DEFINE_CID(kCNewsDB, NS_NEWSDB_CID);
static NS_DEFINE_CID(kCImapDB, NS_IMAPDB_CID);
static NS_DEFINE_CID(kCMsgRetentionSettings, NS_MSG_RETENTIONSETTINGS_CID);
static NS_DEFINE_CID(kCMsgDownloadSettings, NS_MSG_DOWNLOADSETTINGS_CID);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailDatabase)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNewsDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsNewsDatabase)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsImapMailDatabase) NS_GENERIC_FACTORY_CONSTRUCTOR(nsImapMailDatabase)

Просмотреть файл

@ -48,8 +48,6 @@
#include "nsAbCardProperty.h" #include "nsAbCardProperty.h"
#include "prdtoa.h" #include "prdtoa.h"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
#define PREVIOUS_EXTENSION ".prev" #define PREVIOUS_EXTENSION ".prev"
#define kPABDirectory 2 // defined in nsDirPrefs.h #define kPABDirectory 2 // defined in nsDirPrefs.h
#define kMAPIDirectory 3 // defined in nsDirPrefs.h #define kMAPIDirectory 3 // defined in nsDirPrefs.h

Просмотреть файл

@ -98,11 +98,9 @@
#define PREF_TRASH_FOLDER_NAME "trash_folder_name" #define PREF_TRASH_FOLDER_NAME "trash_folder_name"
#define DEFAULT_TRASH_FOLDER_NAME "Trash" #define DEFAULT_TRASH_FOLDER_NAME "Trash"
static NS_DEFINE_CID(kCImapHostSessionList, NS_IIMAPHOSTSESSIONLIST_CID);
static NS_DEFINE_CID(kImapProtocolCID, NS_IMAPPROTOCOL_CID); static NS_DEFINE_CID(kImapProtocolCID, NS_IMAPPROTOCOL_CID);
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID); static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kMsgLogonRedirectorServiceCID, NS_MSGLOGONREDIRECTORSERVICE_CID);
static NS_DEFINE_CID(kImapServiceCID, NS_IMAPSERVICE_CID); static NS_DEFINE_CID(kImapServiceCID, NS_IMAPSERVICE_CID);
static NS_DEFINE_CID(kSubscribableServerCID, NS_SUBSCRIBABLESERVER_CID); static NS_DEFINE_CID(kSubscribableServerCID, NS_SUBSCRIBABLESERVER_CID);
static NS_DEFINE_CID(kCImapHostSessionListCID, NS_IIMAPHOSTSESSIONLIST_CID); static NS_DEFINE_CID(kCImapHostSessionListCID, NS_IIMAPHOSTSESSIONLIST_CID);

Просмотреть файл

@ -109,7 +109,6 @@
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID); static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID); static NS_DEFINE_CID(kCMailDB, NS_MAILDB_CID);
static NS_DEFINE_CID(kImapProtocolCID, NS_IMAPPROTOCOL_CID);
static NS_DEFINE_CID(kCImapDB, NS_IMAPDB_CID); static NS_DEFINE_CID(kCImapDB, NS_IMAPDB_CID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kParseMailMsgStateCID, NS_PARSEMAILMSGSTATE_CID); static NS_DEFINE_CID(kParseMailMsgStateCID, NS_PARSEMAILMSGSTATE_CID);

Просмотреть файл

@ -103,7 +103,6 @@
#define PREF_MAIL_ROOT_IMAP "mail.root.imap" #define PREF_MAIL_ROOT_IMAP "mail.root.imap"
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kImapUrlCID, NS_IMAPURL_CID); static NS_DEFINE_CID(kImapUrlCID, NS_IMAPURL_CID);
static NS_DEFINE_CID(kCacheServiceCID, NS_CACHESERVICE_CID); static NS_DEFINE_CID(kCacheServiceCID, NS_CACHESERVICE_CID);

Просмотреть файл

@ -45,8 +45,6 @@
#include "nsIMsgIncomingServer.h" #include "nsIMsgIncomingServer.h"
#include "nsIDBFolderInfo.h" #include "nsIDBFolderInfo.h"
static NS_DEFINE_CID(kCImapHostSessionList, NS_IIMAPHOSTSESSIONLIST_CID);
nsImapMoveCopyMsgTxn::nsImapMoveCopyMsgTxn() : nsImapMoveCopyMsgTxn::nsImapMoveCopyMsgTxn() :
m_idsAreUids(PR_FALSE), m_isMove(PR_FALSE), m_srcIsPop3(PR_FALSE) m_idsAreUids(PR_FALSE), m_isMove(PR_FALSE), m_srcIsPop3(PR_FALSE)
{ {

Просмотреть файл

@ -52,7 +52,6 @@
#define kCopyBufferSize 8192 #define kCopyBufferSize 8192
#define kMailReadBufferSize 16384 #define kMailReadBufferSize 16384
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static PRBool static PRBool
nsStringEndsWith(nsString& name, const char *ending) nsStringEndsWith(nsString& name, const char *ending)

Просмотреть файл

@ -26,8 +26,6 @@
#include "nsEudoraImport.h" #include "nsEudoraImport.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
static NS_DEFINE_CID(kAbCardPropertyCID, NS_ABCARDPROPERTY_CID);
#include "EudoraDebugLog.h" #include "EudoraDebugLog.h"
#define kWhitespace " \t\b\r\n" #define kWhitespace " \t\b\r\n"

Просмотреть файл

@ -68,7 +68,6 @@ static nsresult NS_FileSpecToILocalFileMac(nsFileSpec *aSpec, nsILocalFileMac **
#endif #endif
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static const char * kWhitespace = "\b\t\r\n "; static const char * kWhitespace = "\b\t\r\n ";

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше