From e80659862d9e82ffe9ace0070447bdfdbe85488b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 16 Jan 2014 13:23:47 +0100 Subject: [PATCH] Remove unsused, commented out code --- common/rfb/SMsgWriter.cxx | 12 ------------ common/rfb/SMsgWriter.h | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx index f47f3eeb..509ffbf5 100644 --- a/common/rfb/SMsgWriter.cxx +++ b/common/rfb/SMsgWriter.cxx @@ -122,18 +122,6 @@ bool SMsgWriter::needFakeUpdate() return false; } -// 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) -{ - writeFramebufferUpdateStart(ui.numRects()); - writeRects(ui, ig, updatedRegion); - writeFramebufferUpdateEnd(); -} -*/ - bool SMsgWriter::needNoDataUpdate() { return false; diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h index 3933b38c..edf29447 100644 --- a/common/rfb/SMsgWriter.h +++ b/common/rfb/SMsgWriter.h @@ -109,18 +109,6 @@ namespace rfb { // order to flush out pseudo-rectangles to the client. virtual bool needFakeUpdate(); - // writeFramebufferUpdate() writes a framebuffer update using the given - // 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 function 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); - */ - // needNoDataUpdate() returns true when an update without any // framebuffer changes need to be sent (using writeNoDataUpdate()). // Commonly this is an update that modifies the size of the framebuffer -- 2.39.5