Bug 1123836: Remove mostly-unused GetPath() impls from nsDeviceContextSpec[Qt,Android,G] classes. r=karlt

This commit is contained in:
Daniel Holbert 2015-01-21 14:09:34 -08:00
parent 6f87a1ed2c
commit dea860b3f7
6 changed files with 1 additions and 26 deletions

View File

@ -84,9 +84,3 @@ nsDeviceContextSpecAndroid::EndDocument()
destFile->SetPermissions(0666);
return NS_OK;
}
NS_IMETHODIMP
nsDeviceContextSpecAndroid::GetPath (const char** aPath)
{
return NS_OK;
}

View File

@ -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<nsIPrintSettings> mPrintSettings;
nsCOMPtr<nsIFile> mTempFile;

View File

@ -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)
{

View File

@ -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:

View File

@ -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,

View File

@ -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();