133
134 this.cancelLoad = false;
135
136 this.loadingProgressCallback = () => {}; 137
138 this.hasSpindle = false;
139
12 this.scene = scene;
13 this.workplacePoints = [];
14 this.workplaceMeshes = [];
15 this.registerClipIgnore = () => { }; 16 }
17
18 setOffsets(points) {
609 return this.gcodeProcessor.currentLineNumber;
610 }
611
612 goToGCodeLine(lineNumber) {} 613
614 simulateToolPosition() {
615 this.updateToolPosition(this.gcodeProcessor.nozzlePosition);
288 }
289
290 refreshUI() {
291 setTimeout(function () {}, 0); 292 }
293
294 resetCamera() {
76 this.simulationCurrentLine = null;
77 this.simulationMultiplier = 1;
78 this.simulationUpdatePosition = () => {};
79 this.simulationStopped = () => {}; 80 this.simLine = Vector3.Zero();
81 this.isMMS = false;
82 }
Having empty functions hurts readability, and is considered a code-smell. There's almost always a way to avoid using them. If you must use one, consider adding a comment to inform the reader of its purpose.
getUser('SwaGaLisTiQuE', () => {})
function f() {}
getUser('SwaGaLisTiQuE', () => {
// empty because <reason>
})
function f() {
// intentionally empty. <reason>
}