From 417c289e7f76507f040f1c7f75240047ed865b8e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 7 Sep 2018 14:15:54 -0400 Subject: [PATCH] remove unneded method --- src/app/debugger/debuggerUI/StepManager.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/debugger/debuggerUI/StepManager.js b/src/app/debugger/debuggerUI/StepManager.js index 2024f4e194..d8533ce65d 100644 --- a/src/app/debugger/debuggerUI/StepManager.js +++ b/src/app/debugger/debuggerUI/StepManager.js @@ -94,8 +94,8 @@ StepManager.prototype.startSlider = function () { }) this.slider = new Slider() - this.slider.event.register('sliderMoved', this, function (step) { - self.sliderMoved(step) + this.slider.event.register('sliderMoved', (step) => { + self.updateStep(step) }) this.parent.callTree.event.register('callTreeReady', () => { @@ -181,11 +181,6 @@ StepManager.prototype.init = function () { this.changeState(0) } -StepManager.prototype.sliderMoved = function (step) { - if (!this.traceManager.inRange(step)) return - this.changeState(step) -} - StepManager.prototype.updateStep = function (step) { this.slider.setValue(step) this.changeState(step)