From 0e270ffbcf086eb71f665eb681e77ca94f7096ab Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 8 Dec 2016 15:14:48 +0100 Subject: [PATCH] remove event traceAnalyser --- src/trace/traceAnalyser.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/trace/traceAnalyser.js b/src/trace/traceAnalyser.js index e6a0df897d..8acf27a17f 100644 --- a/src/trace/traceAnalyser.js +++ b/src/trace/traceAnalyser.js @@ -1,15 +1,12 @@ 'use strict' var traceHelper = require('../helpers/traceHelper') -var EventManager = require('../lib/eventManager') function TraceAnalyser (_cache) { - this.event = new EventManager() this.traceCache = _cache this.trace = null } TraceAnalyser.prototype.analyse = function (trace, tx, callback) { - this.event.trigger('startAnalysing') this.trace = trace this.traceCache.pushStoreChanges(0, tx.to) var context = { @@ -29,10 +26,8 @@ TraceAnalyser.prototype.analyse = function (trace, tx, callback) { context = this.buildDepth(k, step, tx, callStack, context) context = this.buildStorage(k, step, context) this.buildReturnValues(k, step) - this.event.trigger('onOp', [k, step, callStack, this.traceCache]) } callback(null, true) - this.event.trigger('finishAnalysing') } TraceAnalyser.prototype.buildReturnValues = function (index, step) {