remove unused variables

This commit is contained in:
casperlamboo 2016-04-17 11:54:30 +02:00
parent 1960d384d6
commit 3c846db788
1 changed files with 0 additions and 7 deletions

View File

@ -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 () {