diff --git a/widget/android/nsDeviceContextAndroid.cpp b/widget/android/nsDeviceContextAndroid.cpp index 815e9ee198b6..14b0cbf5c5ed 100644 --- a/widget/android/nsDeviceContextAndroid.cpp +++ b/widget/android/nsDeviceContextAndroid.cpp @@ -84,9 +84,3 @@ nsDeviceContextSpecAndroid::EndDocument() destFile->SetPermissions(0666); return NS_OK; } - -NS_IMETHODIMP -nsDeviceContextSpecAndroid::GetPath (const char** aPath) -{ - return NS_OK; -} diff --git a/widget/android/nsDeviceContextAndroid.h b/widget/android/nsDeviceContextAndroid.h index 1addb1cb84fb..251cc7ff8bd6 100644 --- a/widget/android/nsDeviceContextAndroid.h +++ b/widget/android/nsDeviceContextAndroid.h @@ -26,7 +26,6 @@ public: NS_IMETHOD BeginPage() { return NS_OK; } NS_IMETHOD EndPage() { return NS_OK; } - NS_IMETHOD GetPath (const char** aPath); private: nsCOMPtr mPrintSettings; nsCOMPtr mTempFile; diff --git a/widget/gtk/nsDeviceContextSpecG.cpp b/widget/gtk/nsDeviceContextSpecG.cpp index b6efed3dfc2f..b63f0d408a0b 100644 --- a/widget/gtk/nsDeviceContextSpecG.cpp +++ b/widget/gtk/nsDeviceContextSpecG.cpp @@ -110,9 +110,6 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::GetSurfaceForPrinter(gfxASurface **aSurfac { *aSurface = nullptr; - const char *path; - GetPath(&path); - double width, height; mPrintSettings->GetEffectivePageSize(&width, &height); @@ -120,7 +117,7 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::GetSurfaceForPrinter(gfxASurface **aSurfac width /= TWIPS_PER_POINT_FLOAT; height /= TWIPS_PER_POINT_FLOAT; - DO_PR_DEBUG_LOG(("\"%s\", %f, %f\n", path, width, height)); + DO_PR_DEBUG_LOG(("\"%s\", %f, %f\n", mPath, width, height)); nsresult rv; // Spool file. Use Glib's temporary file function since we're @@ -259,12 +256,6 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::Init(nsIWidget *aWidget, return NS_OK; } -NS_IMETHODIMP nsDeviceContextSpecGTK::GetPath(const char **aPath) -{ - *aPath = mPath; - return NS_OK; -} - /* static !! */ nsresult nsDeviceContextSpecGTK::GetPrintMethod(const char *aPrinter, PrintMethod &aMethod) { diff --git a/widget/gtk/nsDeviceContextSpecG.h b/widget/gtk/nsDeviceContextSpecG.h index 8076e7091a96..22c9606e5ada 100644 --- a/widget/gtk/nsDeviceContextSpecG.h +++ b/widget/gtk/nsDeviceContextSpecG.h @@ -44,7 +44,6 @@ public: NS_IMETHOD BeginPage() MOZ_OVERRIDE { return NS_OK; } NS_IMETHOD EndPage() MOZ_OVERRIDE { return NS_OK; } - NS_IMETHOD GetPath (const char **aPath); static nsresult GetPrintMethod(const char *aPrinter, PrintMethod &aMethod); protected: diff --git a/widget/qt/nsDeviceContextSpecQt.cpp b/widget/qt/nsDeviceContextSpecQt.cpp index ea2fc0808891..66a7e7a467c3 100644 --- a/widget/qt/nsDeviceContextSpecQt.cpp +++ b/widget/qt/nsDeviceContextSpecQt.cpp @@ -151,12 +151,6 @@ NS_IMETHODIMP nsDeviceContextSpecQt::Init(nsIWidget* aWidget, return NS_OK; } -NS_IMETHODIMP nsDeviceContextSpecQt::GetPath(const char** aPath) -{ - *aPath = mPath; - return NS_OK; -} - NS_IMETHODIMP nsDeviceContextSpecQt::BeginDocument( const nsAString& aTitle, char16_t* aPrintToFileName, diff --git a/widget/qt/nsDeviceContextSpecQt.h b/widget/qt/nsDeviceContextSpecQt.h index 9ec1f567e16b..d2bbbb6907cf 100644 --- a/widget/qt/nsDeviceContextSpecQt.h +++ b/widget/qt/nsDeviceContextSpecQt.h @@ -35,8 +35,6 @@ public: NS_IMETHOD BeginPage() { return NS_OK; } NS_IMETHOD EndPage() { return NS_OK; } - NS_IMETHOD GetPath (const char** aPath); - protected: virtual ~nsDeviceContextSpecQt();