From 5fdf5b033f6d98f1d07761dfafc75e2d2e0713c4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 5 Sep 2018 15:28:20 -0400 Subject: [PATCH] remove unused parameters --- src/app/debugger/debugger.js | 5 ++--- src/app/debugger/debuggerUI.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/debugger/debugger.js b/src/app/debugger/debugger.js index 4a8c3c1859..5a132bf361 100644 --- a/src/app/debugger/debugger.js +++ b/src/app/debugger/debugger.js @@ -8,15 +8,14 @@ var globalRegistry = require('../../global/registry') /** * Manage remix and source highlighting */ -function Debugger (container, sourceHighlighter, localRegistry) { +function Debugger (sourceHighlighter) { var self = this this.event = new EventManager() this._components = { sourceHighlighter: sourceHighlighter } - // TODO: localRegistry doesn't seem to be actually used anywhere - this._components.registry = localRegistry || globalRegistry + this._components.registry = globalRegistry // dependencies this._deps = { offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api, diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index 2fb6c987a6..2a3434fef8 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -5,7 +5,7 @@ var SourceHighlighter = require('../editor/sourceHighlighter') class DebuggerUI { constructor (container) { - this.transactionDebugger = new Debugger(container, new SourceHighlighter()) + this.transactionDebugger = new Debugger(new SourceHighlighter()) this.isActive = false this.debugger_ui = new OldEthdebuggerUI({debugger: this.transactionDebugger.debugger})