From: Constantin Kaplinsky Date: Fri, 31 Aug 2007 15:44:12 +0000 (+0000) Subject: Unused function commented out. X-Git-Tag: v0.0.90~384^2~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe6b569f07f9a768739b3a98292bcbac81b8b70c;p=tigervnc.git Unused function commented out. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2324 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx index 085dfc16..f3079eed 100644 --- a/common/rfb/SMsgWriter.cxx +++ b/common/rfb/SMsgWriter.cxx @@ -114,9 +114,9 @@ int SMsgWriter::getNumRects(const Rect &r) return encoders[encoding]->getNumRects(r); } -// FIXME: This functions does not compute the number of rectangles correctly -// if the Tight encoder is used (but currently that does not matter -// because this function is never used). +// FIXME: This functions is not used because it incorrectly computes +// the number of rectangles if the Tight encoder is used. +/* void SMsgWriter::writeFramebufferUpdate(const UpdateInfo& ui, ImageGetter* ig, Region* updatedRegion) { @@ -124,6 +124,7 @@ void SMsgWriter::writeFramebufferUpdate(const UpdateInfo& ui, ImageGetter* ig, writeRects(ui, ig, updatedRegion); writeFramebufferUpdateEnd(); } +*/ void SMsgWriter::writeRects(const UpdateInfo& ui, ImageGetter* ig, Region* updatedRegion) diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h index ed8ad0ef..d4c5bf82 100644 --- a/common/rfb/SMsgWriter.h +++ b/common/rfb/SMsgWriter.h @@ -94,8 +94,13 @@ namespace rfb { // UpdateInfo and ImageGetter. On a V3 writer this may have // pseudo-rectangles for setDesktopSize and setCursor added to it, and so // may invoke writeSetCursorCallback(). + // + // FIXME: This functions is not used because it incorrectly computes + // the number of rectangles if the Tight encoder is used. + /* virtual void writeFramebufferUpdate(const UpdateInfo& ui, ImageGetter* ig, Region* updatedRegion); + */ // writeRects() accepts an UpdateInfo (changed & copied regions) and an // ImageGetter to fetch pixels from. It then calls writeCopyRect() and