Browse Source

remove unused code

activeAddress
Ivan Socolsky 10 years ago
parent
commit
eb47e069fd
  1. 25
      lib/storage.js

25
lib/storage.js

@ -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;

Loading…
Cancel
Save