mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-30 08:59:38 +00:00
Remove unused helper for Tight encoding
It's already been inlined where used.
This commit is contained in:
14
core/rfb.js
14
core/rfb.js
@@ -1971,20 +1971,6 @@ RFB.encodingHandlers = {
|
||||
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) {
|
||||
this._FBU.bytes = 1; // compression-control byte
|
||||
if (this._sock.rQwait("TIGHT compression-control", this._FBU.bytes)) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user