coins: remove useless undo method.
This commit is contained in:
parent
8b0ec7b179
commit
723c99d15e
@ -32,10 +32,11 @@ function UndoCoins() {
|
|||||||
/**
|
/**
|
||||||
* Push coin entry onto undo coin array.
|
* Push coin entry onto undo coin array.
|
||||||
* @param {CoinEntry}
|
* @param {CoinEntry}
|
||||||
|
* @returns {Number}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
UndoCoins.prototype.push = function push(coin) {
|
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;
|
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.
|
* Re-apply undo coins to a view, effectively unspending them.
|
||||||
* @param {CoinView} view
|
* @param {CoinView} view
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user