moved GetPrimordialThread from nsAppShellService to nsThread, as suggested by warren

This commit is contained in:
danm@netscape.com
1999-06-13 03:30:38 +00:00
parent 6f159aa380
commit 68c63c0deb
6 changed files with 46 additions and 22 deletions

View File

@@ -93,8 +93,6 @@ public:
NS_IMETHOD Initialize(nsICmdLineService*aCmdLineService);
NS_IMETHOD Run(void);
NS_IMETHOD Shutdown(void);
NS_IMETHOD GetPrimordialThread(PRThread **aThread)
{ *aThread = mPrimordialThread; return NS_OK; }
NS_IMETHOD CreateTopLevelWindow(nsIWebShellWindow * aParent,
nsIURL* aUrl,
@@ -128,7 +126,6 @@ protected:
nsIAppShell* mAppShell;
nsISupportsArray* mWindowList;
nsICmdLineService* mCmdLineService;
PRThread* mPrimordialThread;
};
@@ -139,7 +136,6 @@ nsAppShellService::nsAppShellService()
mAppShell = nsnull;
mWindowList = nsnull;
mCmdLineService = nsnull;
mPrimordialThread = nsnull;
}
nsAppShellService::~nsAppShellService()
@@ -167,9 +163,6 @@ nsAppShellService::Initialize( nsICmdLineService *aCmdLineService )
#ifdef MOZ_FULLCIRCLE
FCInitialize();
#endif
// assume no new threads have been spun up yet, or at least if they have,
// they haven't been made the current one
mPrimordialThread = PR_CurrentThread();
// Remember cmd line service.
mCmdLineService = aCmdLineService;