diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-28 16:43:22 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:08 +0200 |
commit | 0f671d50d900b8df6e29267dbba1610fad355fc5 (patch) | |
tree | a324ac78be951dda632e3b2d772386f1b2c86898 /common | |
parent | cf4255e1a0b1c64f7f2d3f1405ce0142b3460e79 (diff) | |
download | tigervnc-0f671d50d900b8df6e29267dbba1610fad355fc5.tar.gz tigervnc-0f671d50d900b8df6e29267dbba1610fad355fc5.zip |
Remove unused (and commented out) PixelBuffer::getPixel()
Diffstat (limited to 'common')
-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 // |