From bc86b63c2461af3a407e04c7ca1b699bbf1cc1e4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 7 Sep 2017 16:53:59 +0200 Subject: [PATCH] Remove unused helper for Tight encoding It's already been inlined where used. --- core/rfb.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index 2d937d1f..58fa5e43 100644 --- a/core/rfb.js +++ b/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; }