mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-24 11:41:32 +02:00
Remove unused inflate argument
The value true was an invalid flush argument so it was in practice unused.
This commit is contained in:
parent
286694869b
commit
0b19961b06
@ -174,7 +174,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");
|
||||
}
|
||||
@ -222,7 +222,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");
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user