From bbb8b219af30ce2885a5f3f8a40b57dde662723a Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sat, 18 Aug 2001 16:51:20 +0000 Subject: [PATCH] Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal. --- .../tests/viewer/unix/motif/nsMotifMain.cpp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/webshell/tests/viewer/unix/motif/nsMotifMain.cpp b/webshell/tests/viewer/unix/motif/nsMotifMain.cpp index 3d373bae584e..4e0865949cde 100644 --- a/webshell/tests/viewer/unix/motif/nsMotifMain.cpp +++ b/webshell/tests/viewer/unix/motif/nsMotifMain.cpp @@ -23,12 +23,9 @@ #include "nsViewerApp.h" #include "nsBrowserWindow.h" #include "nsMotifMenu.h" -#include "nsIImageManager.h" #include "nsIServiceManager.h" #include "nsGfxCIID.h" -static NS_DEFINE_IID(kImageManagerCID, NS_IMAGEMANAGER_CID); - static nsNativeViewerApp* gTheApp; nsNativeViewerApp::nsNativeViewerApp() @@ -103,25 +100,6 @@ nsNativeBrowserWindow::DispatchMenuItem(PRInt32 aID) int main(int argc, char **argv) { - nsresult result; - // Hack to get il_ss set so it doesn't fail in xpcompat.c - nsCOMPtr manager; - - manager = do_GetService(kImageManagerCID, &result); - if (NS_FAILED(result)) { - /* This is just to provide backwards compatibility, until the ImageManagerImpl - can be converted to a service on all platforms. Once, we havedone the conversion - on all platforms, we should be removing the call to NS_NewImageManager(...) - */ - if ((result = NS_NewImageManager(getter_AddRefs(manager))) != NS_OK) { - return result; - } - // WARNING Extra addref to simulate older be - nsIImageManager *aManager = manager.get(); - NS_ADDREF(aManager); - - } - gTheApp = new nsNativeViewerApp(); putenv("MOZ_TOOLKIT=motif");