walletdb: lint.

This commit is contained in:
Christopher Jeffrey 2016-08-15 15:51:17 -07:00
parent 0f3f9c984b
commit c794c17077
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -15,7 +15,6 @@ var constants = bcoin.protocol.constants;
var BufferReader = require('./reader');
var BufferWriter = require('./writer');
var TXDB = require('./txdb');
var keyTypes = bcoin.keyring.types;
/*
* Database Layout:
@ -281,7 +280,7 @@ WalletDB.prototype._close = function close(callback) {
*/
WalletDB.prototype.getDepth = function getDepth(callback) {
var iter, parts, depth;
var iter, depth;
// This may seem like a strange way to do
// this, but updating a global state when
@ -1254,7 +1253,6 @@ WalletDB.prototype.setTip = function setTip(hash, height, callback) {
*/
WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) {
var self = this;
var batch = this.db.batch();
var i, hash, wallets;
@ -1280,7 +1278,6 @@ WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) {
*/
WalletDB.prototype.unwriteBlock = function unwriteBlock(block, callback) {
var self = this;
var batch = this.db.batch();
var prev = new WalletBlock(block.prevBlock, block.height - 1);