diff options
-rw-r--r-- | common/rfb/PixelBuffer.cxx | 13 | ||||
-rw-r--r-- | common/rfb/PixelBuffer.h | 4 |
2 files changed, 0 insertions, 17 deletions
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 // |