Remove unused force protocol 3.3 code
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index fcad405..af84226 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -46,7 +46,7 @@
supportsLEDState(false),
is(0), os(0), reader_(0), writer_(0),
shared(false),
- state_(RFBSTATE_UNINITIALISED), useProtocol3_3(false),
+ state_(RFBSTATE_UNINITIALISED),
pendingPFChange(false), preferredEncoding(encodingTight),
compressLevel(2), qualityLevel(-1),
formatChange(false), encodingChange(false),
@@ -173,7 +173,7 @@
state_ = RFBSTATE_INVALID;
throw Exception("Server gave unsupported RFB protocol version %d.%d",
server.majorVersion, server.minorVersion);
- } else if (useProtocol3_3 || server.beforeVersion(3,7)) {
+ } else if (server.beforeVersion(3,7)) {
server.setVersion(3,3);
} else if (server.afterVersion(3,8)) {
server.setVersion(3,8);
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h
index 5a3ef91..66a71a2 100644
--- a/common/rfb/CConnection.h
+++ b/common/rfb/CConnection.h
@@ -62,10 +62,6 @@
// server upon initialisation.
void setShared(bool s) { shared = s; }
- // setProtocol3_3 configures whether or not the CConnection should
- // only ever support protocol version 3.3
- void setProtocol3_3(bool s) {useProtocol3_3 = s;}
-
// setFramebuffer configures the PixelBuffer that the CConnection
// should render all pixel data in to. Note that the CConnection
// takes ownership of the PixelBuffer and it must not be deleted by
@@ -225,8 +221,6 @@
CharArray serverName;
- bool useProtocol3_3;
-
bool pendingPFChange;
rfb::PixelFormat pendingPF;