Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
Remove variables no longer used now that we have a source builder class.

See #123.
  • Loading branch information
flatheadmill committed Jul 13, 2013
1 parent a3b3e34 commit 793e1f0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions index.js
Expand Up @@ -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)');
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 793e1f0

Please sign in to comment.