Bug 909870 nsIContentViewerFile::printWithParent is unused. r=bz
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 28 Aug 2013 08:28:03 +0100
changeset 144638 b9e4777416d87beeafd23a8b682d364fb3865f05
parent 144637 6bd5bc19306caefc605573cd68ba0bf3ab614365
child 144639 9b68f15672e34f139ae0f964ad389beff71bf9e1
push id33042
push userbugzilla@standard8.plus.com
push dateWed, 28 Aug 2013 07:28:41 +0000
treeherdermozilla-inbound@b9e4777416d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs909870
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 909870 nsIContentViewerFile::printWithParent is unused. r=bz
docshell/base/nsIContentViewerFile.idl
layout/base/nsDocumentViewer.cpp
--- a/docshell/base/nsIContentViewerFile.idl
+++ b/docshell/base/nsIContentViewerFile.idl
@@ -15,22 +15,17 @@ interface nsIWebProgressListener;
 %}
 
 [ptr] native FILE(FILE);
 
 /**
  * The nsIDocShellFile    
  */
 
-[scriptable, uuid(1b373597-6132-49f7-940e-6ff62fca5d35)]
+[scriptable, uuid(564a3276-6228-401e-9b5c-d82cb382a60f)]
 interface nsIContentViewerFile : nsISupports
 {
   readonly attribute boolean printable;
 
   [noscript] void print(in boolean aSilent,
                         in FILE    aDebugFile, 
                         in nsIPrintSettings aPrintSettings);
-
-  [noscript] void printWithParent(in nsIDOMWindow aParentWin,
-                                  in nsIPrintSettings aThePrintSettings,
-                                  in nsIWebProgressListener aWPListener);
-
 };
--- a/layout/base/nsDocumentViewer.cpp
+++ b/layout/base/nsDocumentViewer.cpp
@@ -2576,27 +2576,16 @@ nsDocumentViewer::Print(bool            
 
 
   return Print(printSettings, nullptr);
 #else
   return NS_ERROR_FAILURE;
 #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
 NS_IMETHODIMP
 nsDocumentViewer::GetPrintable(bool *aPrintable)
 {
   NS_ENSURE_ARG_POINTER(aPrintable);
 
   *aPrintable = !GetIsPrinting();