Commit 0d2d4055 authored by Iuri Matias's avatar Iuri Matias

cleanup

parent 7fee4f36
...@@ -13,7 +13,6 @@ var remixLib = require('remix-lib') ...@@ -13,7 +13,6 @@ var remixLib = require('remix-lib')
var TraceManager = remixLib.trace.TraceManager var TraceManager = remixLib.trace.TraceManager
var CodeManager = remixLib.code.CodeManager var CodeManager = remixLib.code.CodeManager
var traceHelper = remixLib.helpers.trace var traceHelper = remixLib.helpers.trace
// var executionContext = remixLib.execution.executionContext
var EventManager = remixLib.EventManager var EventManager = remixLib.EventManager
/** /**
...@@ -33,7 +32,6 @@ function Ethdebugger (opts) { ...@@ -33,7 +32,6 @@ function Ethdebugger (opts) {
this.opts = opts || {} this.opts = opts || {}
if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null } if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null }
// this.executionContext = opts.executionContext || executionContext
this.web3 = opts.web3 this.web3 = opts.web3
this.event = new EventManager() this.event = new EventManager()
......
...@@ -20,7 +20,6 @@ function Debugger (options) { ...@@ -20,7 +20,6 @@ function Debugger (options) {
this.compiler = options.compiler this.compiler = options.compiler
this.debugger = new Ethdebugger({ this.debugger = new Ethdebugger({
// executionContext: this.executionContext,
web3: this.executionContext.web3, web3: this.executionContext.web3,
compilationResult: () => { compilationResult: () => {
var compilationResult = this.compiler.lastCompilationResult var compilationResult = this.compiler.lastCompilationResult
...@@ -43,11 +42,6 @@ function Debugger (options) { ...@@ -43,11 +42,6 @@ function Debugger (options) {
this.debugger.setBreakpointManager(this.breakPointManager) this.debugger.setBreakpointManager(this.breakPointManager)
this.executionContext.event.register('contextChanged', this, function (context) {
// TODO: was already broken
// self.switchProvider(context)
})
this.debugger.event.register('newTraceLoaded', this, function () { this.debugger.event.register('newTraceLoaded', this, function () {
self.event.trigger('debuggerStatus', [true]) self.event.trigger('debuggerStatus', [true])
}) })
...@@ -66,8 +60,6 @@ function Debugger (options) { ...@@ -66,8 +60,6 @@ function Debugger (options) {
this.switchProvider(this.executionContext.getProvider()) this.switchProvider(this.executionContext.getProvider())
} }
Debugger.prototype.addProvider = function (type, obj) { Debugger.prototype.addProvider = function (type, obj) {
this.web3Providers.addProvider(type, obj) this.web3Providers.addProvider(type, obj)
this.event.trigger('providerAdded', [type]) this.event.trigger('providerAdded', [type])
...@@ -93,8 +85,6 @@ Debugger.prototype.switchProvider = function (type) { ...@@ -93,8 +85,6 @@ Debugger.prototype.switchProvider = function (type) {
}) })
} }
Debugger.prototype.registerAndHighlightCodeItem = function (index) { Debugger.prototype.registerAndHighlightCodeItem = function (index) {
const self = this const self = this
// register selected code item, highlight the corresponding source location // register selected code item, highlight the corresponding source location
......
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