]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Remove unused encoding handlers
authorPierre Ossman <ossman@cendio.se>
Thu, 7 Sep 2017 14:55:11 +0000 (16:55 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 7 Sep 2017 15:18:25 +0000 (17:18 +0200)
These should never be sent by a server, so we don't need handlers
for them.

core/rfb.js

index 58fa5e43d38a6e0f661563d42e52f0589aa0ab61..66910c38859622d9579561089c51c9c21c769b13 100644 (file)
@@ -1971,7 +1971,7 @@ RFB.encodingHandlers = {
         return true;
     },
 
-    display_tight: function (isTightPNG) {
+    TIGHT: function () {
         this._FBU.bytes = 1;  // compression-control byte
         if (this._sock.rQwait("TIGHT compression-control", this._FBU.bytes)) { return false; }
 
@@ -2203,11 +2203,6 @@ RFB.encodingHandlers = {
                                "Illegal tight compression received, " +
                                "ctl: " + ctl);
 
-        if (isTightPNG && (cmode === "filter" || cmode === "copy")) {
-            return this._fail("Unexpected server message",
-                              "filter/copy received in tightPNG mode");
-        }
-
         switch (cmode) {
             // fill use depth because TPIXELs drop the padding byte
             case "fill":  // TPIXEL
@@ -2283,9 +2278,6 @@ RFB.encodingHandlers = {
         return true;
     },
 
-    TIGHT: function () { return this._encHandlers.display_tight(false); },
-    TIGHT_PNG: function () { return this._encHandlers.display_tight(true); },
-
     last_rect: function () {
         this._FBU.rects = 0;
         return true;
@@ -2398,12 +2390,4 @@ RFB.encodingHandlers = {
         } 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");
-    }
 };