summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-06-20 11:48:17 +0200
committerPierre Ossman <ossman@cendio.se>2018-11-01 16:11:42 +0100
commit5588f4f4820bb822cd221e33a8b4aae4cfeef073 (patch)
treecd93068657d031f30ef0341648b2c7ca297a5b98 /common
parent3bbe8d7217c750b3f8a92f1785caa974a254f505 (diff)
downloadtigervnc-5588f4f4820bb822cd221e33a8b4aae4cfeef073.tar.gz
tigervnc-5588f4f4820bb822cd221e33a8b4aae4cfeef073.zip
Remove unused flags from ServerParams
These were either completely unused, or always true.
Diffstat (limited to 'common')
-rw-r--r--common/rfb/CConnection.cxx3
-rw-r--r--common/rfb/ServerParams.cxx5
-rw-r--r--common/rfb/ServerParams.h6
3 files changed, 2 insertions, 12 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 6bb824d1..e61c2e72 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -579,11 +579,10 @@ void CConnection::updateEncodings()
encodings.push_back(pseudoEncodingDesktopSize);
if (server.supportsExtendedDesktopSize)
encodings.push_back(pseudoEncodingExtendedDesktopSize);
- if (server.supportsDesktopRename)
- encodings.push_back(pseudoEncodingDesktopName);
if (server.supportsLEDState)
encodings.push_back(pseudoEncodingLEDState);
+ encodings.push_back(pseudoEncodingDesktopName);
encodings.push_back(pseudoEncodingLastRect);
encodings.push_back(pseudoEncodingContinuousUpdates);
encodings.push_back(pseudoEncodingFence);
diff --git a/common/rfb/ServerParams.cxx b/common/rfb/ServerParams.cxx
index 4ee25a88..9ae8a60a 100644
--- a/common/rfb/ServerParams.cxx
+++ b/common/rfb/ServerParams.cxx
@@ -25,11 +25,8 @@ using namespace rfb;
ServerParams::ServerParams()
: majorVersion(0), minorVersion(0),
- useCopyRect(false),
- supportsLocalCursor(false), supportsLocalXCursor(false),
- supportsLocalCursorWithAlpha(false),
+ supportsLocalCursor(false),
supportsDesktopResize(false), supportsExtendedDesktopSize(false),
- supportsDesktopRename(false), supportsLastRect(false),
supportsLEDState(false), supportsQEMUKeyEvent(false),
supportsSetDesktopSize(false), supportsFence(false),
supportsContinuousUpdates(false),
diff --git a/common/rfb/ServerParams.h b/common/rfb/ServerParams.h
index 4554f093..cae38cb5 100644
--- a/common/rfb/ServerParams.h
+++ b/common/rfb/ServerParams.h
@@ -69,15 +69,9 @@ namespace rfb {
unsigned int ledState() { return ledState_; }
void setLEDState(unsigned int state);
- bool useCopyRect;
-
bool supportsLocalCursor;
- bool supportsLocalXCursor;
- bool supportsLocalCursorWithAlpha;
bool supportsDesktopResize;
bool supportsExtendedDesktopSize;
- bool supportsDesktopRename;
- bool supportsLastRect;
bool supportsLEDState;
bool supportsQEMUKeyEvent;