Merge pull request #400 from petrosagg/remove-dead-code
Remove dead code in Script.js
This commit is contained in:
commit
3842ed69cb
|
@ -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 + '"');
|
||||
|
|
Loading…
Reference in New Issue