Bug 909870 nsIContentViewerFile::printWithParent is unused. r=bz

This commit is contained in:
Mark Banner 2013-08-28 08:28:03 +01:00
parent d14b079934
commit c8656941f2
2 changed files with 1 additions and 17 deletions

View File

@ -20,7 +20,7 @@ interface nsIWebProgressListener;
* The nsIDocShellFile * The nsIDocShellFile
*/ */
[scriptable, uuid(1b373597-6132-49f7-940e-6ff62fca5d35)] [scriptable, uuid(564a3276-6228-401e-9b5c-d82cb382a60f)]
interface nsIContentViewerFile : nsISupports interface nsIContentViewerFile : nsISupports
{ {
readonly attribute boolean printable; readonly attribute boolean printable;
@ -28,9 +28,4 @@ interface nsIContentViewerFile : nsISupports
[noscript] void print(in boolean aSilent, [noscript] void print(in boolean aSilent,
in FILE aDebugFile, in FILE aDebugFile,
in nsIPrintSettings aPrintSettings); in nsIPrintSettings aPrintSettings);
[noscript] void printWithParent(in nsIDOMWindow aParentWin,
in nsIPrintSettings aThePrintSettings,
in nsIWebProgressListener aWPListener);
}; };

View File

@ -2581,17 +2581,6 @@ nsDocumentViewer::Print(bool aSilent,
#endif #endif
} }
/* [noscript] void printWithParent (in nsIDOMWindow aParentWin, in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener); */
NS_IMETHODIMP
nsDocumentViewer::PrintWithParent(nsIDOMWindow*, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener)
{
#ifdef NS_PRINTING
return Print(aThePrintSettings, aWPListener);
#else
return NS_ERROR_FAILURE;
#endif
}
// nsIContentViewerFile interface // nsIContentViewerFile interface
NS_IMETHODIMP NS_IMETHODIMP
nsDocumentViewer::GetPrintable(bool *aPrintable) nsDocumentViewer::GetPrintable(bool *aPrintable)