From d2ce401f841c7edde019f854976111bdb4b73be7 Mon Sep 17 00:00:00 2001 From: Petros Angelatos Date: Wed, 2 Jul 2014 01:22:18 +0100 Subject: [PATCH] remove dead code --- lib/Script.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Script.js b/lib/Script.js index 6b91e74c4..f679a20cc 100644 --- a/lib/Script.js +++ b/lib/Script.js @@ -602,10 +602,6 @@ Script.stringToBuffer = function(s) { // string //console.log('string'); word = word.substring(1, word.length - 1); - var hexString = ''; - for (var c = 0; c < word.length; c++) { - hexString += '' + word.charCodeAt(c).toString(16); - } buf.put(Script.chunksToBuffer([new Buffer(word)])); } else { throw new Error('Could not parse word "' + word + '" from script "' + s + '"');