Remove unused encoding handlers
These should never be sent by a server, so we don't need handlers for them.
This commit is contained in:
parent
bc86b63c24
commit
3e8b26ab58
18
core/rfb.js
18
core/rfb.js
|
@ -1971,7 +1971,7 @@ RFB.encodingHandlers = {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
display_tight: function (isTightPNG) {
|
TIGHT: function () {
|
||||||
this._FBU.bytes = 1; // compression-control byte
|
this._FBU.bytes = 1; // compression-control byte
|
||||||
if (this._sock.rQwait("TIGHT compression-control", this._FBU.bytes)) { return false; }
|
if (this._sock.rQwait("TIGHT compression-control", this._FBU.bytes)) { return false; }
|
||||||
|
|
||||||
|
@ -2203,11 +2203,6 @@ RFB.encodingHandlers = {
|
||||||
"Illegal tight compression received, " +
|
"Illegal tight compression received, " +
|
||||||
"ctl: " + ctl);
|
"ctl: " + ctl);
|
||||||
|
|
||||||
if (isTightPNG && (cmode === "filter" || cmode === "copy")) {
|
|
||||||
return this._fail("Unexpected server message",
|
|
||||||
"filter/copy received in tightPNG mode");
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (cmode) {
|
switch (cmode) {
|
||||||
// fill use depth because TPIXELs drop the padding byte
|
// fill use depth because TPIXELs drop the padding byte
|
||||||
case "fill": // TPIXEL
|
case "fill": // TPIXEL
|
||||||
|
@ -2283,9 +2278,6 @@ RFB.encodingHandlers = {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
TIGHT: function () { return this._encHandlers.display_tight(false); },
|
|
||||||
TIGHT_PNG: function () { return this._encHandlers.display_tight(true); },
|
|
||||||
|
|
||||||
last_rect: function () {
|
last_rect: function () {
|
||||||
this._FBU.rects = 0;
|
this._FBU.rects = 0;
|
||||||
return true;
|
return true;
|
||||||
|
@ -2398,12 +2390,4 @@ RFB.encodingHandlers = {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
JPEG_quality_lo: function () {
|
|
||||||
Log.Error("Server sent jpeg_quality pseudo-encoding");
|
|
||||||
},
|
|
||||||
|
|
||||||
compress_lo: function () {
|
|
||||||
Log.Error("Server sent compress level pseudo-encoding");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue