From 9636e467d5577b045a9162f7f840a985934d7803 Mon Sep 17 00:00:00 2001 From: Alfred Kayser Date: Fri, 12 Feb 2010 10:17:51 +0100 Subject: [PATCH] bug 386937: get rid of ConvertPixels (r=vladimir) --- gfx/src/thebes/nsThebesDeviceContext.cpp | 7 ------- gfx/src/thebes/nsThebesDeviceContext.h | 4 ---- 2 files changed, 11 deletions(-) diff --git a/gfx/src/thebes/nsThebesDeviceContext.cpp b/gfx/src/thebes/nsThebesDeviceContext.cpp index 73f07fadca9..315e96b77d4 100644 --- a/gfx/src/thebes/nsThebesDeviceContext.cpp +++ b/gfx/src/thebes/nsThebesDeviceContext.cpp @@ -907,13 +907,6 @@ nsThebesDeviceContext::GetDepth(PRUint32& aDepth) return NS_OK; } -NS_IMETHODIMP -nsThebesDeviceContext::ConvertPixel(nscolor aColor, PRUint32 & aPixel) -{ - aPixel = aColor; - return NS_OK; -} - NS_IMETHODIMP nsThebesDeviceContext::GetDeviceSurfaceDimensions(nscoord &aWidth, nscoord &aHeight) { diff --git a/gfx/src/thebes/nsThebesDeviceContext.h b/gfx/src/thebes/nsThebesDeviceContext.h index 6b2a08e4e29..a42c4f2e85c 100644 --- a/gfx/src/thebes/nsThebesDeviceContext.h +++ b/gfx/src/thebes/nsThebesDeviceContext.h @@ -114,8 +114,6 @@ public: NS_IMETHOD GetDepth(PRUint32& aDepth); - NS_IMETHOD ConvertPixel(nscolor aColor, PRUint32& aPixel); - NS_IMETHOD GetDeviceSurfaceDimensions(nscoord& aWidth, nscoord& aHeight); NS_IMETHOD GetRect(nsRect& aRect); NS_IMETHOD GetClientRect(nsRect& aRect); @@ -135,8 +133,6 @@ public: NS_IMETHOD EndPage(void); /* end printing goop */ - static void DebugShowCairoSurface (const char *aName, cairo_surface_t *aSurface); - virtual PRBool CheckDPIChange(); virtual PRBool SetPixelScale(float aScale);