Browse Source

util/util: remove buf64(), both incorrect and unnecessary

patch-2
Jeff Garzik 11 years ago
parent
commit
b38863e4db
  1. 9
      util/util.js

9
util/util.js

@ -323,15 +323,6 @@ var varStrBuf = exports.varStrBuf = function varStrBuf(s) {
return Buffer.concat(varIntBuf(s.length), s);
};
var buf64 = exports.buf64 = function buf64(n) {
var lo = n & 0xffffffff;
var hi = (n >>> 32);
var buf = new Buffer(4 + 4);
buf.writeUInt32LE(lo, 0);
buf.writeUInt32LE(hi, 4);
return buf;
};
// Initializations
exports.NULL_HASH = new Buffer(32).fill(0);
exports.EMPTY_BUFFER = new Buffer(0);

Loading…
Cancel
Save