Remove ctor/dtor counter macros I added before it was determined we shouldn't

use them for xpcom classes.
This commit is contained in:
putterman%netscape.com 1999-10-10 22:52:49 +00:00
Родитель 6a6fa70abd
Коммит df01d32703
7 изменённых файлов: 0 добавлений и 21 удалений

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

@ -68,7 +68,6 @@ nsMsgAccount::QueryInterface(const nsIID& iid, void **result)
return rv;
}
MOZ_DECL_CTOR_COUNTER(nsMsgAccount);
nsMsgAccount::nsMsgAccount():
m_accountKey(0),
@ -76,14 +75,12 @@ nsMsgAccount::nsMsgAccount():
m_incomingServer(null_nsCOMPtr()),
m_defaultIdentity(null_nsCOMPtr())
{
MOZ_COUNT_CTOR(nsMsgAccount);
NS_INIT_REFCNT();
}
nsMsgAccount::~nsMsgAccount()
{
MOZ_COUNT_DTOR(nsMsgAccount);
// release of servers an identites happen automatically
// thanks to nsCOMPtrs and nsISupportsArray

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

@ -84,12 +84,10 @@ nsrefcnt nsMsgAccountManagerDataSource::gAccountManagerResourceRefCnt = 0;
#define NC_RDF_IDENTITY NC_NAMESPACE_URI "Identity"
#define NC_RDF_SETTINGS NC_NAMESPACE_URI "Settings"
MOZ_DECL_CTOR_COUNTER(nsMsgAccountManagerDataSource);
nsMsgAccountManagerDataSource::nsMsgAccountManagerDataSource():
mAccountManager(null_nsCOMPtr())
{
MOZ_COUNT_CTOR(nsMsgAccountManagerDataSource);
#ifdef DEBUG_amds
printf("nsMsgAccountManagerDataSource() being created\n");
@ -108,7 +106,6 @@ nsMsgAccountManagerDataSource::nsMsgAccountManagerDataSource():
nsMsgAccountManagerDataSource::~nsMsgAccountManagerDataSource()
{
MOZ_COUNT_DTOR(nsMsgAccountManagerDataSource);
if (--gAccountManagerResourceRefCnt == 0)
{
NS_IF_RELEASE(kNC_Child);

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

@ -74,12 +74,10 @@ nsIRDFResource* nsMsgFolderDataSource::kNC_EmptyTrash= nsnull;
nsrefcnt nsMsgFolderDataSource::gFolderResourceRefCnt = 0;
MOZ_DECL_CTOR_COUNTER(nsMsgFolderDataSource);
nsMsgFolderDataSource::nsMsgFolderDataSource():
mInitialized(PR_FALSE)
{
MOZ_COUNT_CTOR(nsMsgFolderDataSource);
}
nsMsgFolderDataSource::~nsMsgFolderDataSource (void)
@ -118,7 +116,6 @@ nsMsgFolderDataSource::~nsMsgFolderDataSource (void)
NS_RELEASE2(kNC_Rename, refcnt);
NS_RELEASE2(kNC_EmptyTrash, refcnt);
}
MOZ_COUNT_DTOR(nsMsgFolderDataSource);
}
nsresult nsMsgFolderDataSource::Init()

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

@ -40,14 +40,12 @@ static NS_DEFINE_CID(kFileLocatorCID, NS_FILELOCATOR_CID);
//static NS_DEFINE_CID(kPop3IncomingServerCID, NS_POP3INCOMINGSERVER_CID);
//static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
MOZ_DECL_CTOR_COUNTER(nsMsgMailSession);
nsMsgMailSession::nsMsgMailSession():
mRefCnt(0),
m_accountManager(0),
m_msgFolderCache(0)
{
MOZ_COUNT_CTOR(nsMsgMailSession);
NS_INIT_REFCNT();
}
@ -55,7 +53,6 @@ nsMsgMailSession::nsMsgMailSession():
nsMsgMailSession::~nsMsgMailSession()
{
MOZ_COUNT_DTOR(nsMsgMailSession);
if(m_accountManager)
{

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

@ -68,19 +68,16 @@ nsIRDFResource* nsMsgMessageDataSource::kNC_MarkUnflagged= nsnull;
nsrefcnt nsMsgMessageDataSource::gMessageResourceRefCnt = 0;
MOZ_DECL_CTOR_COUNTER(nsMsgMessageDataSource);
nsMsgMessageDataSource::nsMsgMessageDataSource():
mInitialized(PR_FALSE),
mHeaderParser(nsnull)
{
MOZ_COUNT_CTOR(nsMsgMessageDataSource);
}
nsMsgMessageDataSource::~nsMsgMessageDataSource (void)
{
MOZ_COUNT_DTOR(nsMsgMessageDataSource);
nsresult rv;
if (!m_shuttingDown)

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

@ -20,18 +20,15 @@
#include "nsMessage.h"
#include "nsIMsgFolder.h"
MOZ_DECL_CTOR_COUNTER(nsMessage);
nsMessage::nsMessage(void)
: nsRDFResource(), mFolder(nsnull)
{
MOZ_COUNT_CTOR(nsMessage);
}
nsMessage::~nsMessage(void)
{
MOZ_COUNT_DTOR(nsMessage);
//Member variables are either nsCOMPtr's or ptrs we don't want to own.
}

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

@ -40,7 +40,6 @@ static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
static NS_DEFINE_CID(kMsgMailSessionCID, NS_MSGMAILSESSION_CID);
MOZ_DECL_CTOR_COUNTER(nsMsgFolder);
nsMsgFolder::nsMsgFolder(void)
: nsRDFResource(),
@ -55,7 +54,6 @@ nsMsgFolder::nsMsgFolder(void)
mIsServer(PR_FALSE)
{
// NS_INIT_REFCNT(); done by superclass
MOZ_COUNT_CTOR(nsMsgFolder);
mSemaphoreHolder = NULL;
@ -75,7 +73,6 @@ nsMsgFolder::nsMsgFolder(void)
nsMsgFolder::~nsMsgFolder(void)
{
MOZ_COUNT_DTOR(nsMsgFolder);
if(mSubFolders)
{
PRUint32 count;