From 793e1f045db62a2222719b905e30bc3b49687217 Mon Sep 17 00:00:00 2001 From: Alan Gutierrez Date: Sat, 13 Jul 2013 15:11:48 -0400 Subject: [PATCH] Remove unused variables. Remove variables no longer used now that we have a source builder class. See #123. --- index.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index 06d8df94..80f6a670 100644 --- a/index.js +++ b/index.js @@ -242,7 +242,8 @@ function Definition (context, packets, transforms, options) { bite = little ? 0 : bytes - 1, direction = little ? 1 : -1, gather = new Source, - stop = little ? bytes : -1; + stop = little ? bytes : -1, + line; source.hoist('value'); if (options.buffersOnly) { source.line(variable + ' buffer.read' + size + suffix + '(' + offset + ', true)'); @@ -282,18 +283,14 @@ function Definition (context, packets, transforms, options) { var method = new Source; var section = new Source; - - var offset = 0, sum = 0, sums = [], fixed = true, - source = new Source, hoisted = [ 'object = {}' ], length = [], - line; + var offset = 0; + var sum = 0; + var sums = []; + var fixed = true; + var length = []; method.hoist('object = {}'); - function indent (spaces) { - spaces = new Array(spaces + 1).join(' '); - return function (line) { return spaces + line } - } - function fix () { if (!fixed) fixed = true; }