Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed May 21, 2012
1 parent 801fa0a commit 375d7e9
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,34 +527,6 @@
return new Program([new ExpressionStatement(new CallExpression(module, [new ThisExpression()]))]);
}

var binaryOperators = {
"+": {name: "+", computeType: function (l, r) { return types.dyn; }},
"-": {name: "-", computeType: function (l, r) { return types.dyn; }},
"*": {name: "*", computeType: function (l, r) { return types.dyn; }},
"/": {name: "/", computeType: function (l, r) { return types.dyn; }},
"&": {name: "&", computeType: function (l, r) { return types.int; }},
"<<": {name: "<<", computeType: function (l, r) { return types.int; }},
">>": {name: ">>", computeType: function (l, r) { return types.int; }},
">>>": {name: ">>>", computeType: function (l, r) { return types.uint; }},
"|": {name: "|", computeType: function (l, r) { return types.int; }},
"^": {name: "^", computeType: function (l, r) { return types.int; }},
"&": {name: "&", computeType: function (l, r) { return types.int; }}
};

var assignmentOperators = {
"+=": binaryOperators["+"],
"-=": binaryOperators["-"],
"*=": binaryOperators["*"],
"/=": binaryOperators["/"],
"&=": binaryOperators["&"],
"<<=": binaryOperators["<<"],
">>=": binaryOperators[">>"],
">>>=": binaryOperators[">>>"],
"|=": binaryOperators["|"],
"^=": binaryOperators["^"],
"&=": binaryOperators["&"]
};

/**
* Pass 1: resolve type synonyms and do some type sanity checking.
*/
Expand Down

0 comments on commit 375d7e9

Please sign in to comment.