From 7a66a2717ed77c535073575d6efb3dd5cd868d94 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 19 Feb 2016 22:11:33 -0800 Subject: [PATCH] minor --- lib/bcoin/pool.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 4bd6e032..a964a6af 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -1188,7 +1188,6 @@ Pool.prototype.isWatched = function(tx, bloom) { Pool.prototype.addWallet = function addWallet(wallet) { var self = this; - var e; if (this.loading) return this.once('load', this.addWallet.bind(this, wallet)); @@ -1199,8 +1198,6 @@ Pool.prototype.addWallet = function addWallet(wallet) { this.watchWallet(wallet); this.wallets.push(wallet); - e = new EventEmitter(); - function search() { // Relay pending TXs // NOTE: It is important to do it after search, because search could @@ -1227,8 +1224,6 @@ Pool.prototype.addWallet = function addWallet(wallet) { wallet.once('load', search); else search(); - - return e; }; Pool.prototype.removeWallet = function removeWallet(wallet) {