Skip to content

Commit

Permalink
Removed remnants of async parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
keichi committed Jan 23, 2015
1 parent e29127c commit 01993df
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/binary_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ var Parser = function() {
this.next = null;
this.head = null;
this.compiled = null;
this.isAsync = false;
this.endian = 'be';
this.constructorFn = null;
};
Expand Down Expand Up @@ -199,9 +198,6 @@ Parser.prototype.create = function(constructorFn) {

Parser.prototype.getCode = function() {
var ctx = new Context();
if (this.isAsync) {
ctx.isAsync = true;
}

if (this.constructorFn) {
ctx.pushCode('var vars = new constructorFn();');
Expand All @@ -215,10 +211,6 @@ Parser.prototype.getCode = function() {

this.generate(ctx);

if (!this.isAsync) {
ctx.pushCode('return vars;');
}

return ctx.code;
};

Expand Down

0 comments on commit 01993df

Please sign in to comment.