From a3e7dbd2becb01da3fa552b4f1c20b09ca9a95e2 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 9 Oct 2018 15:08:39 -0400 Subject: [PATCH] cleanup --- remix-debug/src/Ethdebugger.js | 2 -- remix-debug/src/debugger/debugger.js | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/remix-debug/src/Ethdebugger.js b/remix-debug/src/Ethdebugger.js index a9a9f4db77..8f325280d7 100644 --- a/remix-debug/src/Ethdebugger.js +++ b/remix-debug/src/Ethdebugger.js @@ -13,7 +13,6 @@ var remixLib = require('remix-lib') var TraceManager = remixLib.trace.TraceManager var CodeManager = remixLib.code.CodeManager var traceHelper = remixLib.helpers.trace -// var executionContext = remixLib.execution.executionContext var EventManager = remixLib.EventManager /** @@ -33,7 +32,6 @@ function Ethdebugger (opts) { this.opts = opts || {} if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null } - // this.executionContext = opts.executionContext || executionContext this.web3 = opts.web3 this.event = new EventManager() diff --git a/remix-debug/src/debugger/debugger.js b/remix-debug/src/debugger/debugger.js index 398e9796ea..37fc2fe4e0 100644 --- a/remix-debug/src/debugger/debugger.js +++ b/remix-debug/src/debugger/debugger.js @@ -20,7 +20,6 @@ function Debugger (options) { this.compiler = options.compiler this.debugger = new Ethdebugger({ - // executionContext: this.executionContext, web3: this.executionContext.web3, compilationResult: () => { var compilationResult = this.compiler.lastCompilationResult @@ -43,11 +42,6 @@ function Debugger (options) { 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 () { self.event.trigger('debuggerStatus', [true]) }) @@ -66,8 +60,6 @@ function Debugger (options) { this.switchProvider(this.executionContext.getProvider()) } - - Debugger.prototype.addProvider = function (type, obj) { this.web3Providers.addProvider(type, obj) this.event.trigger('providerAdded', [type]) @@ -93,8 +85,6 @@ Debugger.prototype.switchProvider = function (type) { }) } - - Debugger.prototype.registerAndHighlightCodeItem = function (index) { const self = this // register selected code item, highlight the corresponding source location