diff options
author | Niko Lehto <nikle@cendio.se> | 2020-02-03 09:53:30 +0100 |
---|---|---|
committer | Niko Lehto <nikle@cendio.se> | 2020-02-17 11:29:40 +0100 |
commit | 183cab0ecaa57865d777779dbeb3826cfce8d296 (patch) | |
tree | 7dcaa9fe89735563d1714189a8625b5052aab367 | |
parent | 9575ded8da83b6d8774b36316c388279fa0512cc (diff) | |
download | novnc-183cab0ecaa57865d777779dbeb3826cfce8d296.tar.gz |
Remove unused inflate argument
The value true was an invalid flush argument so it was in practice
unused.
-rw-r--r-- | core/decoders/tight.js | 4 | ||||
-rw-r--r-- | core/inflator.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/decoders/tight.js b/core/decoders/tight.js index 7695d44..5a0a315 100644 --- a/core/decoders/tight.js +++ b/core/decoders/tight.js @@ -160,7 +160,7 @@ export default class TightDecoder { return false; } - data = this._zlibs[streamId].inflate(data, true, uncompressedSize); + data = this._zlibs[streamId].inflate(data, uncompressedSize); if (data.length != uncompressedSize) { throw new Error("Incomplete zlib block"); } @@ -208,7 +208,7 @@ export default class TightDecoder { return false; } - data = this._zlibs[streamId].inflate(data, true, uncompressedSize); + data = this._zlibs[streamId].inflate(data, uncompressedSize); if (data.length != uncompressedSize) { throw new Error("Incomplete zlib block"); } diff --git a/core/inflator.js b/core/inflator.js index 0eab8fe..fe9f8c7 100644 --- a/core/inflator.js +++ b/core/inflator.js @@ -11,7 +11,7 @@ export default class Inflate { inflateInit(this.strm, this.windowBits); } - inflate(data, flush, expected) { + inflate(data, expected) { this.strm.input = data; this.strm.avail_in = this.strm.input.length; this.strm.next_in = 0; @@ -27,7 +27,7 @@ export default class Inflate { this.strm.avail_out = this.chunkSize; - inflate(this.strm, flush); + inflate(this.strm, 0); // Flush argument not used. return new Uint8Array(this.strm.output.buffer, 0, this.strm.next_out); } |