r=dbaron sr=buster. Took out the nsIPrintOptions service registration.. which is not needed.

git-svn-id: svn://10.0.0.236/trunk@84961 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com 2001-01-16 21:00:58 +00:00
parent 911b77adc6
commit 2a78e4b3b0

View File

@ -63,8 +63,6 @@
#include "nsDirectoryServiceDefs.h"
#include "nsIHTTPProtocolHandler.h"
#include "nsBuildID.h"
#include "nsIPrintOptions.h"
#include "nsGfxCIID.h"
// Interfaces Needed
#include "nsIXULWindow.h"
@ -947,15 +945,6 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp )
return rv;
}
nsIPrintOptions *thePrintOptions;
static NS_DEFINE_CID(kPrintOptionsCID,NS_PRINTOPTIONS_CID);
rv = nsComponentManager::CreateInstance(kPrintOptionsCID,nsnull,NS_GET_IID(nsIPrintOptions),(void**)&thePrintOptions);
if(NS_SUCCEEDED(rv) && thePrintOptions) {
nsServiceManager::RegisterService(kPrintOptionsCID,thePrintOptions);
}
nsCOMPtr<nsIAppShellService> appShell = do_GetService(kAppShellServiceCID, &rv);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to get the appshell service");