remove unused parameters

pull/1/head
Iuri Matias 7 years ago committed by yann300
parent ef087ec897
commit 5fdf5b033f
  1. 5
      src/app/debugger/debugger.js
  2. 2
      src/app/debugger/debuggerUI.js

@ -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')
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})

Loading…
Cancel
Save