Sindarius / npm_gcodeviewer

Found empty functions JS-0057
Anti-pattern
Minor
3 months agoa year old
Unexpected empty arrow function
 133
 134      this.cancelLoad = false;
 135
 136      this.loadingProgressCallback = () => {}; 137
 138      this.hasSpindle = false;
 139
Unexpected empty arrow function
12        this.scene = scene; 
13        this.workplacePoints = []; 
14        this.workplaceMeshes = []; 
15        this.registerClipIgnore = () => { }; 16    } 
17 
18    setOffsets(points) { 
Unexpected empty method 'goToGCodeLine'
609      return this.gcodeProcessor.currentLineNumber; 
610   } 
611 
612   goToGCodeLine(lineNumber) {} 613 
614   simulateToolPosition() { 
615      this.updateToolPosition(this.gcodeProcessor.nozzlePosition); 
Unexpected empty function
288   } 
289 
290   refreshUI() { 
291      setTimeout(function () {}, 0); 292   } 
293 
294   resetCamera() { 
Unexpected empty arrow function
 76      this.simulationCurrentLine = null; 
 77      this.simulationMultiplier = 1; 
 78      this.simulationUpdatePosition = () => {}; 
 79      this.simulationStopped = () => {};  80      this.simLine = Vector3.Zero(); 
 81      this.isMMS = false; 
 82   }