From b38863e4db6c6629222046f056bf20f3e520744d Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Fri, 13 Sep 2013 15:32:35 -0400 Subject: [PATCH] util/util: remove buf64(), both incorrect and unnecessary --- util/util.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/util/util.js b/util/util.js index fe170a1..076951f 100644 --- a/util/util.js +++ b/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);