From 0f671d50d900b8df6e29267dbba1610fad355fc5 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 28 Jan 2014 16:43:22 +0100 Subject: Remove unused (and commented out) PixelBuffer::getPixel() --- common/rfb/PixelBuffer.cxx | 13 ------------- common/rfb/PixelBuffer.h | 4 ---- 2 files changed, 17 deletions(-) (limited to 'common') diff --git a/common/rfb/PixelBuffer.cxx b/common/rfb/PixelBuffer.cxx index 60957a25..293403b6 100644 --- a/common/rfb/PixelBuffer.cxx +++ b/common/rfb/PixelBuffer.cxx @@ -64,19 +64,6 @@ PixelBuffer::getImage(void* imageBuf, const Rect& r, int outStride) { } } -/* *** -Pixel PixelBuffer::getPixel(const Point& p) { - int stride; - Rect r = Rect(p.x, p.y, p.x+1, p.y+1); - switch(format.bpp) { - case 8: return *((rdr::U8*)getDataAt(r, &stride)); - case 16: return *((rdr::U16*)getDataAt(r, &stride)); - case 32: return *((rdr::U32*)getDataAt(r, &stride)); - default: return 0; - }; -} -*/ - static void fillRect8(U8 *buf, int stride, const Rect& r, Pixel pix) { diff --git a/common/rfb/PixelBuffer.h b/common/rfb/PixelBuffer.h index e870622e..0d152635 100644 --- a/common/rfb/PixelBuffer.h +++ b/common/rfb/PixelBuffer.h @@ -78,10 +78,6 @@ namespace rfb { // stride. virtual void getImage(void* imageBuf, const Rect& r, int stride=0); - // Get the data at (x,y) as a Pixel. - // VERY INEFFICIENT!!! - // *** Pixel getPixel(const Point& p); - /////////////////////////////////////////////// // Framebuffer update methods // -- cgit v1.2.3