From 7e8d763a59fa322aa1add3be9815275fd4dfbdfc Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Mon, 26 Apr 1999 22:52:38 +0000 Subject: [PATCH] remove all references to the old nsIMessenger --- mailnews/base/build/nsMsgFactory.cpp | 1 + mailnews/base/src/nsMessenger.cpp | 23 ++--------------------- mailnews/base/src/nsMessenger.h | 3 --- mailnews/base/src/nsMessengerNameSet.cpp | 1 - 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/mailnews/base/build/nsMsgFactory.cpp b/mailnews/base/build/nsMsgFactory.cpp index 59ed97821ae..0d83c1656eb 100644 --- a/mailnews/base/build/nsMsgFactory.cpp +++ b/mailnews/base/build/nsMsgFactory.cpp @@ -27,6 +27,7 @@ #include "nsCRT.h" #include "nsCOMPtr.h" +#include "nsMessenger.h" #include "nsMsgGroupRecord.h" #include "nsMsgAppCore.h" diff --git a/mailnews/base/src/nsMessenger.cpp b/mailnews/base/src/nsMessenger.cpp index 5f1b7602c17..40fb0fe2ae5 100644 --- a/mailnews/base/src/nsMessenger.cpp +++ b/mailnews/base/src/nsMessenger.cpp @@ -17,6 +17,8 @@ */ #include "nsMessenger.h" +#include "nsIAppShellService.h" +#include "nsIServiceManager.h" #include "nsMessengerNameSet.h" #include "nsIScriptNameSetRegistry.h" @@ -123,24 +125,3 @@ NS_NewMessengerBootstrap(const nsIID &aIID, void ** msgboot) return bootstrap->QueryInterface(aIID, msgboot); } -// nsMessenger implementation - -class nsMessenger : public nsIMessenger { - -public: - NS_DECL_ISUPPORTS -}; - -NS_IMPL_ISUPPORTS(nsMessenger, nsIMessenger::GetIID()) - - -nsresult -NS_NewMessenger(const nsIID &aIID, void **msg) -{ - if (!msg) return NS_ERROR_NULL_POINTER; - nsMessenger *messenger = - new nsMessenger(); - if (!messenger) return NS_ERROR_OUT_OF_MEMORY; - return messenger->QueryInterface(aIID, msg); -} - diff --git a/mailnews/base/src/nsMessenger.h b/mailnews/base/src/nsMessenger.h index ad7453616c0..87d78d17a9e 100644 --- a/mailnews/base/src/nsMessenger.h +++ b/mailnews/base/src/nsMessenger.h @@ -21,7 +21,6 @@ #define __nsMessenger_h #include "nscore.h" -#include "nsIMessenger.h" #include "nsIServiceManager.h" #include "nsIAppShellService.h" @@ -38,8 +37,6 @@ NS_BEGIN_EXTERN_C -nsresult NS_NewMessenger(const nsIID &aIID, void **inst); - nsresult NS_NewMessengerBootstrap(const nsIID &aIID, void ** inst); NS_END_EXTERN_C diff --git a/mailnews/base/src/nsMessengerNameSet.cpp b/mailnews/base/src/nsMessengerNameSet.cpp index e59f0f5ee98..658f9b8c16d 100644 --- a/mailnews/base/src/nsMessengerNameSet.cpp +++ b/mailnews/base/src/nsMessengerNameSet.cpp @@ -24,7 +24,6 @@ #include "nsIScriptContext.h" #include "nsIScriptNameSpaceManager.h" #include "nsIScriptExternalNameSet.h" -#include "nsMessenger.h" /* hack the AppCore stuff here */