10000 Remove dead code · repos-javascript-compilers/LLJS@375d7e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 375d7e9

Browse files
committed
Remove dead code
1 parent 801fa0a commit 375d7e9

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/compiler.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -527,34 +527,6 @@
527527
return new Program([new ExpressionStatement(new CallExpression(module, [new ThisExpression()]))]);
528528
}
529529

530-
var binaryOperators = {
531-
"+": {name: "+", computeType: function (l, r) { return types.dyn; }},
532-
"-": {name: "-", computeType: function (l, r) { return types.dyn; }},
533-
"*": {name: "*", computeType: function (l, r) { return types.dyn; }},
534-
"/": {name: "/", computeType: function (l, r) { return types.dyn; }},
535-
"&": {name: "&", computeType: function (l, r) { return types.int; }},
536-
"<<": {name: "<<", computeType: function (l, r) { return types.int; }},
537-
">>": {name: ">>", computeType: function (l, r) { return types.int; }},
538-
">>>": {name: ">>>", computeType: function (l, r) { return types.uint; }},
539-
"|": {name: "|", computeType: function (l, r) { return types.int; }},
540-
"^": {name: "^", computeType: function (l, r) { return types.int; }},
541-
"&": {name: "&", computeType: function (l, r) { return types.int; }}
542-
};
543-
544-
var assignmentOperators = {
545-
"+=": binaryOperators["+"],
546-
"-=": binaryOperators["-"],
547-
"*=": binaryOperators["*"],
548-
"/=": binaryOperators["/"],
549-
"&=": binaryOperators["&"],
550-
"<<=": binaryOperators["<<"],
551-
">>=": binaryOperators[">>"],
552-
">>>=": binaryOperators[">>>"],
553-
"|=": binaryOperators["|"],
554-
"^=": binaryOperators["^"],
555-
"&=": binaryOperators["&"]
556-
};
557-
558530
/**
559531
* Pass 1: resolve type synonyms and do some type sanity checking.
560532
*/

0 commit comments

Comments
 (0)
0