Commit 5fdf5b03 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

remove unused parameters

parent ef087ec8
...@@ -8,15 +8,14 @@ var globalRegistry = require('../../global/registry') ...@@ -8,15 +8,14 @@ var globalRegistry = require('../../global/registry')
/** /**
* Manage remix and source highlighting * Manage remix and source highlighting
*/ */
function Debugger (container, sourceHighlighter, localRegistry) { function Debugger (sourceHighlighter) {
var self = this var self = this
this.event = new EventManager() this.event = new EventManager()
this._components = { this._components = {
sourceHighlighter: sourceHighlighter sourceHighlighter: sourceHighlighter
} }
// TODO: localRegistry doesn't seem to be actually used anywhere this._components.registry = globalRegistry
this._components.registry = localRegistry || globalRegistry
// dependencies // dependencies
this._deps = { this._deps = {
offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api, offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api,
......
...@@ -5,7 +5,7 @@ var SourceHighlighter = require('../editor/sourceHighlighter') ...@@ -5,7 +5,7 @@ var SourceHighlighter = require('../editor/sourceHighlighter')
class DebuggerUI { class DebuggerUI {
constructor (container) { constructor (container) {
this.transactionDebugger = new Debugger(container, new SourceHighlighter()) this.transactionDebugger = new Debugger(new SourceHighlighter())
this.isActive = false this.isActive = false
this.debugger_ui = new OldEthdebuggerUI({debugger: this.transactionDebugger.debugger}) this.debugger_ui = new OldEthdebuggerUI({debugger: this.transactionDebugger.debugger})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment