mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-31 16:53:48 +01:00
remove unused variables
This commit is contained in:
parent
1960d384d6
commit
3c846db788
@ -66,15 +66,10 @@ export default class extends EventDispatcher {
|
|||||||
throw `Cannot print, print state is ${printerState.state}`;
|
throw `Cannot print, print state is ${printerState.state}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const autoUpdateState = this.autoUpdate;
|
|
||||||
this.autoUpdate = false;
|
|
||||||
|
|
||||||
if (!gcode.endsWith('\n')) {
|
if (!gcode.endsWith('\n')) {
|
||||||
gcode += '\n';
|
gcode += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
this._currentBatch = 0;
|
|
||||||
|
|
||||||
let lastIndex = 0;
|
let lastIndex = 0;
|
||||||
let start = true;
|
let start = true;
|
||||||
while (lastIndex !== gcode.length) {
|
while (lastIndex !== gcode.length) {
|
||||||
@ -88,8 +83,6 @@ export default class extends EventDispatcher {
|
|||||||
start = false;
|
start = false;
|
||||||
lastIndex = index + 1; //skip next \n
|
lastIndex = index + 1; //skip next \n
|
||||||
}
|
}
|
||||||
|
|
||||||
this.autoUpdate = autoUpdateState;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async _update () {
|
async _update () {
|
||||||
|
Loading…
Reference in New Issue
Block a user