From 97791570f9ae3258d9a581b0e3fafee690731468 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 7 Apr 2015 19:34:00 +0300 Subject: [PATCH] cleanup --- lib/node.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/node.js b/lib/node.js index c82c089..462b806 100644 --- a/lib/node.js +++ b/lib/node.js @@ -494,33 +494,4 @@ Node.prototype.stop = function() web3.reset(); } -function directICAP(address) -{ - if (address[0] != 0) - return ''; - - var d = toBase36(address); - - while(d.length < 30) - d = "0" + d; - - return d; - // return iban("XE", d); -} - -function toBase36(hex) -{ - var c_alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - var a = hex.length; - var ret = ''; - - for(; a > 0; a = a/36){ - ret = c_alphabet[a%36] + ret; - console.log('a: ', a); - console.log('ret: ', ret); - } - - return ret; -} - module.exports = Node; \ No newline at end of file