Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.

This commit is contained in:
dbaron%fas.harvard.edu 2001-08-18 16:43:50 +00:00
parent 51baf59c94
commit 2b431343cd

View File

@ -24,15 +24,12 @@
#include "nsViewerApp.h"
#include "nsBrowserWindow.h"
#include "nsIImageManager.h"
#include "nsQtMenu.h"
#include <stdlib.h>
#include "plevent.h"
#include "nsIServiceManager.h"
#include "nsGfxCIID.h"
static NS_DEFINE_IID(kImageManagerCID, NS_IMAGEMANAGER_CID);
static nsNativeViewerApp* gTheApp;
nsNativeViewerApp::nsNativeViewerApp()
@ -109,26 +106,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<nsIImageManager> 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=qt");