mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123836: Remove mostly-unused GetPath() impls from nsDeviceContextSpec[Qt,Android,G] classes. r=karlt
This commit is contained in:
parent
c0574c1054
commit
6964879aa3
@ -84,9 +84,3 @@ nsDeviceContextSpecAndroid::EndDocument()
|
||||
destFile->SetPermissions(0666);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDeviceContextSpecAndroid::GetPath (const char** aPath)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user