From 723c99d15e16cce671d7d46fdf585f34a9b47e6e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 17 Jul 2017 22:17:37 -0700 Subject: [PATCH] coins: remove useless undo method. --- lib/coins/undocoins.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/coins/undocoins.js b/lib/coins/undocoins.js index 2494b171..7808bfe9 100644 --- a/lib/coins/undocoins.js +++ b/lib/coins/undocoins.js @@ -32,10 +32,11 @@ function UndoCoins() { /** * Push coin entry onto undo coin array. * @param {CoinEntry} + * @returns {Number} */ UndoCoins.prototype.push = function push(coin) { - this.items.push(coin); + return this.items.push(coin); }; /** @@ -118,15 +119,6 @@ UndoCoins.prototype.commit = function commit() { return raw; }; -/** - * Retrieve the last undo coin. - * @returns {UndoCoin} - */ - -UndoCoins.prototype.top = function top() { - return this.items[this.items.length - 1]; -}; - /** * Re-apply undo coins to a view, effectively unspending them. * @param {CoinView} view