From 8272b88f9092b6c38bbec38195cdb903b57f5988 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 23 Apr 1999 16:47:05 +0000 Subject: [PATCH] Removed SelectionMgr --- widget/src/windows/makefile.win | 2 -- widget/src/windows/nsAppShell.cpp | 16 ---------------- widget/src/windows/nsAppShell.h | 2 -- 3 files changed, 20 deletions(-) diff --git a/widget/src/windows/makefile.win b/widget/src/windows/makefile.win index 963149aab90a..cecfeec2df09 100644 --- a/widget/src/windows/makefile.win +++ b/widget/src/windows/makefile.win @@ -51,7 +51,6 @@ CPPSRCS = \ nsDialog.cpp \ nsLabel.cpp \ nsToolkit.cpp \ - nsSelectionMgr.cpp \ nsStringUtil.cpp \ $(NULL) @@ -86,7 +85,6 @@ OBJS = \ .\$(OBJDIR)\nsDialog.obj \ .\$(OBJDIR)\nsLabel.obj \ .\$(OBJDIR)\nsToolkit.obj \ - .\$(OBJDIR)\nsSelectionMgr.obj \ .\$(OBJDIR)\nsStringUtil.obj \ $(NULL) diff --git a/widget/src/windows/nsAppShell.cpp b/widget/src/windows/nsAppShell.cpp index 328b62cc55ef..676f723bac02 100644 --- a/widget/src/windows/nsAppShell.cpp +++ b/widget/src/windows/nsAppShell.cpp @@ -18,7 +18,6 @@ #include "nsAppShell.h" #include "nsIWidget.h" -#include "nsSelectionMgr.h" #include NS_IMPL_ISUPPORTS(nsAppShell, NS_IAPPSHELL_IID) @@ -32,7 +31,6 @@ nsAppShell::nsAppShell() { NS_INIT_REFCNT(); mDispatchListener = 0; - mSelectionMgr = 0; } @@ -45,10 +43,6 @@ nsAppShell::nsAppShell() NS_METHOD nsAppShell::Create(int* argc, char ** argv) { - // Create the selection manager - if (!mSelectionMgr) - NS_NewSelectionMgr(&mSelectionMgr); - return NS_OK; } @@ -189,7 +183,6 @@ NS_METHOD nsAppShell::Exit() //------------------------------------------------------------------------- nsAppShell::~nsAppShell() { - NS_IF_RELEASE(mSelectionMgr); } //------------------------------------------------------------------------- @@ -205,13 +198,4 @@ void* nsAppShell::GetNativeData(PRUint32 aDataType) return nsnull; } -NS_METHOD -nsAppShell::GetSelectionMgr(nsISelectionMgr** aSelectionMgr) -{ - *aSelectionMgr = mSelectionMgr; - NS_IF_ADDREF(mSelectionMgr); - if (!mSelectionMgr) - return NS_ERROR_NOT_INITIALIZED; - return NS_OK; -} diff --git a/widget/src/windows/nsAppShell.h b/widget/src/windows/nsAppShell.h index 0afd8d98e8a7..d22c0cdabf02 100644 --- a/widget/src/windows/nsAppShell.h +++ b/widget/src/windows/nsAppShell.h @@ -49,11 +49,9 @@ class nsAppShell : public nsIAppShell NS_IMETHOD SetDispatchListener(nsDispatchListener* aDispatchListener); NS_IMETHOD Exit(); virtual void * GetNativeData(PRUint32 aDataType); - NS_IMETHOD GetSelectionMgr(nsISelectionMgr** aSelectionMgr); private: nsDispatchListener* mDispatchListener; - nsISelectionMgr *mSelectionMgr; }; #endif // nsAppShell_h__