Bug 348992 - gFastLoadService_ exported unnecessarily, r=brendan

This commit is contained in:
benjamin%smedbergs.us 2006-08-17 17:10:24 +00:00
Родитель 305e7a7ad8
Коммит d3b57fcec8
3 изменённых файлов: 0 добавлений и 8 удалений

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

@ -100,7 +100,6 @@ EXPORTS = \
nsAppDirectoryServiceDefs.h \ nsAppDirectoryServiceDefs.h \
nsDirectoryService.h \ nsDirectoryService.h \
nsEscape.h \ nsEscape.h \
nsFastLoadPtr.h \
nsFastLoadService.h \ nsFastLoadService.h \
nsLinebreakConverter.h \ nsLinebreakConverter.h \
nsLocalFile.h \ nsLocalFile.h \

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

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

@ -45,7 +45,6 @@
#include "nsAutoLock.h" #include "nsAutoLock.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsFastLoadFile.h" #include "nsFastLoadFile.h"
#include "nsFastLoadPtr.h"
#include "nsFastLoadService.h" #include "nsFastLoadService.h"
#include "nsString.h" #include "nsString.h"
@ -58,8 +57,6 @@
#include "nsISeekableStream.h" #include "nsISeekableStream.h"
#include "nsISupports.h" #include "nsISupports.h"
PR_IMPLEMENT_DATA(nsIFastLoadService*) gFastLoadService_ = nsnull;
NS_IMPL_THREADSAFE_ISUPPORTS1(nsFastLoadService, nsIFastLoadService) NS_IMPL_THREADSAFE_ISUPPORTS1(nsFastLoadService, nsIFastLoadService)
nsFastLoadService::nsFastLoadService() nsFastLoadService::nsFastLoadService()
@ -67,14 +64,10 @@ nsFastLoadService::nsFastLoadService()
mFastLoadPtrMap(nsnull), mFastLoadPtrMap(nsnull),
mDirection(0) mDirection(0)
{ {
NS_ASSERTION(gFastLoadService_ == nsnull, "double FastLoadService init?");
gFastLoadService_ = this;
} }
nsFastLoadService::~nsFastLoadService() nsFastLoadService::~nsFastLoadService()
{ {
gFastLoadService_ = nsnull;
if (mInputStream) if (mInputStream)
mInputStream->Close(); mInputStream->Close();
if (mOutputStream) if (mOutputStream)