Skip to content

Commit

Permalink
Remove an unused optimization that does unsound conversion of
Browse files Browse the repository at this point in the history
    var o = { prop : function() {} };
to
    var o = { prop() {} };

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=128376960
  • Loading branch information
blickly committed Jul 25, 2016
1 parent f35b210 commit fd1edcb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 230 deletions.
9 changes: 0 additions & 9 deletions src/com/google/javascript/jscomp/DefaultPassConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ protected List<PassFactory> getOptimizations() {
// Raise to ES6, if allowed
if (options.getLanguageOut().isEs6OrHigher()) {
passes.add(optimizeToEs6);
passes.add(objectLitAssignmentShortening);
passes.add(rewriteBindThis);
}

Expand Down Expand Up @@ -2710,14 +2709,6 @@ protected CompilerPass create(AbstractCompiler compiler) {
}
};

private final PassFactory objectLitAssignmentShortening =
new PassFactory("objectLitAssignmentShortening", true) {
@Override
protected CompilerPass create(AbstractCompiler compiler) {
return new ObjectLitAssignmentShortening(compiler);
}
};

private final PassFactory rewriteBindThis =
new PassFactory("rewriteBindThis", true) {
@Override
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit fd1edcb

Please sign in to comment.