commit e13d4b60880143a4376da6285d25f0b13fce1619
parent 9168ac0f485e6cd88ac62875a27a8f6941dfdd52
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Wed, 5 Feb 2025 15:40:17 +0100
binary-stream: remove unused parameter
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/binary-stream/index.js b/src/lib/binary-stream/index.js
@@ -1,7 +1,7 @@
import utf8 from 'utf8';
class BinStream {
- constructor(size, littlEndian) {
+ constructor(littlEndian) {
this.maxSize = 1024;
this.dv = new DataView(new ArrayBuffer(this.maxSize));
this._pos = 0;
diff --git a/src/lib/leaflet.control.jnx/jnx-encoder.js b/src/lib/leaflet.control.jnx/jnx-encoder.js
@@ -61,7 +61,7 @@ const JnxWriter = L.Class.extend({
south = (south < tile.extents.south) ? south : tile.extents.south;
}
}
- const stream = new BinStream(1024, true);
+ const stream = new BinStream(true);
// header
stream.writeInt32(4); // version
stream.writeInt32(0); // device id