From 3c846db788c8cf892ad5b7ec2b8a6835171f2f61 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Sun, 17 Apr 2016 11:54:30 +0200 Subject: [PATCH] remove unused variables --- src/doodle3dapi.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/doodle3dapi.js b/src/doodle3dapi.js index f0c2889..19eb056 100644 --- a/src/doodle3dapi.js +++ b/src/doodle3dapi.js @@ -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 () {