removing selection manager.

git-svn-id: svn://10.0.0.236/trunk@28856 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
1999-04-23 16:47:11 +00:00
parent f752203a60
commit 9efd616f0f
2 changed files with 0 additions and 20 deletions

View File

@@ -31,7 +31,6 @@
#include "nsIWidget.h"
#include "nsMacMessageSink.h"
#include "nsMacMessagePump.h"
#include "nsSelectionMgr.h"
#include "nsToolKit.h"
#include <Quickdraw.h>
#include <Fonts.h>
@@ -72,10 +71,6 @@ NS_IMETHODIMP nsAppShell::Create(int* argc, char ** argv)
{
mToolKit = auto_ptr<nsToolkit>( new nsToolkit() );
// Create the selection manager
if (!mSelectionMgr)
NS_NewSelectionMgr(&mSelectionMgr);
mMacSink = new nsMacMessageSink();
mMacPump = auto_ptr<nsMacMessagePump>( new nsMacMessagePump(mToolKit.get(), mMacSink) );
@@ -170,7 +165,6 @@ nsAppShell::nsAppShell()
}
mRefCnt = 0;
mExitCalled = PR_FALSE;
mSelectionMgr = 0;
mMacSink = 0;
}
@@ -181,7 +175,6 @@ nsAppShell::nsAppShell()
//-------------------------------------------------------------------------
nsAppShell::~nsAppShell()
{
NS_IF_RELEASE(mSelectionMgr);
}
//-------------------------------------------------------------------------
@@ -294,13 +287,3 @@ nsAppShell::DispatchNativeEvent(PRBool aRealEvent, void *aEvent)
mMacPump->DispatchEvent(aRealEvent, (EventRecord *) aEvent);
return NS_OK;
}
NS_METHOD
nsAppShell::GetSelectionMgr(nsISelectionMgr** aSelectionMgr)
{
*aSelectionMgr = mSelectionMgr;
NS_IF_ADDREF(mSelectionMgr);
if (!mSelectionMgr)
return NS_ERROR_NOT_INITIALIZED;
return NS_OK;
}