0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-11-05 04:33:24 +01:00

remove unused variables

This commit is contained in:
casperlamboo 2016-04-17 11:54:30 +02:00
parent 1960d384d6
commit 3c846db788

View File

@ -66,15 +66,10 @@ export default class extends EventDispatcher {
throw `Cannot print, print state is ${printerState.state}`;
}
const autoUpdateState = this.autoUpdate;
this.autoUpdate = false;
if (!gcode.endsWith('\n')) {
gcode += '\n';
}
this._currentBatch = 0;
let lastIndex = 0;
let start = true;
while (lastIndex !== gcode.length) {
@ -88,8 +83,6 @@ export default class extends EventDispatcher {
start = false;
lastIndex = index + 1; //skip next \n
}
this.autoUpdate = autoUpdateState;
}
async _update () {