From 3fce7741e4c5c2fbf52da8ed9d18ea4a69735f97 Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Sun, 16 May 1999 19:07:19 +0000 Subject: [PATCH] Removing xpinstall and silentdl references from the viewer. git-svn-id: svn://10.0.0.236/trunk@31853 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webshell/tests/viewer/makefile.win | 2 - mozilla/webshell/tests/viewer/nsViewerApp.cpp | 41 ------------------- 2 files changed, 43 deletions(-) diff --git a/mozilla/webshell/tests/viewer/makefile.win b/mozilla/webshell/tests/viewer/makefile.win index cca4920df08..474638ab3d9 100644 --- a/mozilla/webshell/tests/viewer/makefile.win +++ b/mozilla/webshell/tests/viewer/makefile.win @@ -68,8 +68,6 @@ LINCS= \ -I$(PUBLIC)\unicharutil \ -I$(PUBLIC)\intl \ -I$(PUBLIC)\rdf \ - -I$(PUBLIC)\silentdl \ - -I$(PUBLIC)\xpinstall \ -I$(PUBLIC)\wallet \ -I$(PUBLIC)\profile \ !if defined(NGPREFS) diff --git a/mozilla/webshell/tests/viewer/nsViewerApp.cpp b/mozilla/webshell/tests/viewer/nsViewerApp.cpp index 5bdbd023f25..cd6ec43614b 100644 --- a/mozilla/webshell/tests/viewer/nsViewerApp.cpp +++ b/mozilla/webshell/tests/viewer/nsViewerApp.cpp @@ -72,29 +72,6 @@ #include #endif -/********************************************* - SilentDownload -*********************************************/ -#include "nsSilentDownload.h" -#include "nsIDOMSilentDownload.h" - -static nsIDOMSilentDownload *silentDownload = NULL; -static NS_DEFINE_IID(kISilentDownloadIID, NS_IDOMSILENTDOWNLOAD_IID); -static NS_DEFINE_IID(kSilentDownloadCID, NS_SilentDownload_CID); -/*********************************************/ - -/********************************************* - SoftwareUpdate -*********************************************/ -#include "nsISoftwareUpdate.h" -#include "nsSoftwareUpdateIIDs.h" - -static nsISoftwareUpdate *softwareUpdate= NULL; -static NS_DEFINE_IID(kISoftwareUpdateIID, NS_ISOFTWAREUPDATE_IID); -static NS_DEFINE_IID(kSoftwareUpdateCID, NS_SoftwareUpdate_CID); -/*********************************************/ - - extern nsresult NS_NewBrowserWindowFactory(nsIFactory** aFactory); extern nsresult NS_NewXPBaseWindowFactory(nsIFactory** aFactory); extern "C" void NS_SetupRegistry(); @@ -325,18 +302,6 @@ nsViewerApp::Initialize(int argc, char** argv) return rv; } - - rv = nsComponentManager::CreateInstance(kSoftwareUpdateCID, - nsnull, - kISoftwareUpdateIID, - (void**) &softwareUpdate); - - - rv = nsComponentManager::CreateInstance(kSilentDownloadCID, - nsnull, - kISilentDownloadIID, - (void**) &silentDownload); - // Finally process our arguments rv = ProcessArguments(argc, argv); @@ -347,12 +312,6 @@ nsViewerApp::Initialize(int argc, char** argv) nsresult nsViewerApp::Exit() { - if (silentDownload != nsnull) - NS_RELEASE(silentDownload); - - if (softwareUpdate!= nsnull) - NS_RELEASE(softwareUpdate); - Destroy(); mAppShell->Exit();