JSHint: remove defined but never used

This commit is contained in:
Daniel Cousens 2014-06-04 14:07:29 +10:00
parent e735a9182b
commit f5005299d1
4 changed files with 9 additions and 11 deletions

View file

@ -6,7 +6,6 @@ var assert = require('assert')
var BigInteger = require('bigi')
// constants
var TWO = BigInteger.valueOf(2)
var THREE = BigInteger.valueOf(3)
function ECFieldElementFp(q,x) {

View file

@ -1,5 +1,4 @@
var ec = require('./ec')
var Key = require('./eckey')
var T = require('./transaction')
module.exports = {

View file

@ -1,16 +1,15 @@
// FIXME: To all ye that enter here, be weary of Buffers, Arrays and Hex interchanging between the outpoints
var assert = require('assert')
var Address = require('./address')
var BigInteger = require('bigi')
var bufferutils = require('./bufferutils')
var Script = require('./script')
var convert = require('./convert')
var crypto = require('./crypto')
var ECKey = require('./eckey')
var ecdsa = require('./ecdsa')
var opcodes = require('./opcodes')
var Address = require('./address')
var Script = require('./script')
var ECKey = require('./eckey')
var DEFAULT_SEQUENCE = 0xffffffff
function Transaction(doc) {
@ -154,7 +153,7 @@ Transaction.prototype.toBuffer = function () {
writeUInt32(this.version)
writeVarInt(this.ins.length)
this.ins.forEach(function(txin, i) {
this.ins.forEach(function(txin) {
var hash = new Buffer(txin.outpoint.hash, 'hex') // FIXME: Performance: convert on tx.addInput instead
// TxHash hex is big-endian, we need little-endian

View file

@ -205,11 +205,12 @@ function Wallet(seed, network) {
return tx
}
function getCandidateOutputs(value){
function getCandidateOutputs() {
var unspent = []
for (var key in me.outputs){
for (var key in me.outputs) {
var output = me.outputs[key]
if(!output.spend) unspent.push(output)
if (!output.spend) unspent.push(output)
}
var sortByValueDesc = unspent.sort(function(o1, o2){