зеркало из https://github.com/mozilla/pjs.git
Bug 348992 - gFastLoadService_ exported unnecessarily, r=brendan
This commit is contained in:
Родитель
305e7a7ad8
Коммит
d3b57fcec8
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче