remove unused code

This commit is contained in:
Ivan Socolsky 2015-02-26 12:34:45 -03:00
parent fec62dfbd9
commit eb47e069fd
1 changed files with 0 additions and 25 deletions

View File

@ -284,8 +284,6 @@ Storage.prototype._delByKey = function(key, cb) {
})
.on('error', function(err) {
if (err.notFound) return cb();
console.log('[storage.js.252]'); //TODO
return cb(err);
})
.on('end', function(err) {
@ -300,15 +298,6 @@ Storage.prototype._delByKey = function(key, cb) {
});
};
Storage.prototype.removeAllPendingTxs = function(walletId, cb) {
this._delByKey(KEY.PENDING_TXP(walletId), cb);
};
Storage.prototype.removeAllTxs = function(walletId, cb) {
this._delByKey(KEY.TXP(walletId), cb);
};
Storage.prototype._removeCopayers = function(walletId, cb) {
var self = this;
@ -324,15 +313,6 @@ Storage.prototype._removeCopayers = function(walletId, cb) {
});
};
Storage.prototype._removeAllNotifications = function(walletId, cb) {
this._delByKey(KEY.NOTIFICATION(walletId), cb);
};
Storage.prototype._removeAllAddresses = function(walletId, cb) {
this._delByKey(KEY.ADDRESS(walletId), cb);
};
Storage.prototype.removeWallet = function(walletId, cb) {
var self = this;
@ -381,11 +361,6 @@ Storage.prototype.storeAddressAndWallet = function(wallet, address, cb) {
this.db.batch(ops, cb);
};
Storage.prototype.removeAddress = function(walletId, address, cb) {
this.db.del(KEY.ADDRESS(walletId, address.address), cb);
};
Storage.prototype._dump = function(cb, fn) {
fn = fn || console.log;