Remove unused helper for Tight encoding

It's already been inlined where used.
This commit is contained in:
Pierre Ossman 2017-09-07 16:53:59 +02:00
parent 910fd3afc9
commit bc86b63c24
1 changed files with 0 additions and 14 deletions

View File

@ -1971,20 +1971,6 @@ RFB.encodingHandlers = {
return true; return true;
}, },
getTightCLength: function (arr) {
var header = 1, data = 0;
data += arr[0] & 0x7f;
if (arr[0] & 0x80) {
header++;
data += (arr[1] & 0x7f) << 7;
if (arr[1] & 0x80) {
header++;
data += arr[2] << 14;
}
}
return [header, data];
},
display_tight: function (isTightPNG) { display_tight: function (isTightPNG) {
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; }