Skip to content

Commit

Permalink
Remove the arguments usage check. Users never really liked it, and …
Browse files Browse the repository at this point in the history
…the primary motivation for creating it is a non-issue now that 6a40212 is submitted.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116147157
  • Loading branch information
tbreisacher authored and blickly committed Mar 2, 2016
1 parent a5166e4 commit 3734b26
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 143 deletions.
2 changes: 0 additions & 2 deletions src/com/google/javascript/jscomp/DefaultPassConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import com.google.javascript.jscomp.ExtractPrototypeMemberDeclarations.Pattern;
import com.google.javascript.jscomp.NodeTraversal.Callback;
import com.google.javascript.jscomp.PassFactory.HotSwapPassFactory;
import com.google.javascript.jscomp.lint.CheckArguments;
import com.google.javascript.jscomp.lint.CheckDuplicateCase;
import com.google.javascript.jscomp.lint.CheckEmptyStatements;
import com.google.javascript.jscomp.lint.CheckEnums;
Expand Down Expand Up @@ -1558,7 +1557,6 @@ protected HotSwapCompilerPass create(AbstractCompiler compiler) {
@Override
protected HotSwapCompilerPass create(AbstractCompiler compiler) {
ImmutableList.Builder<Callback> callbacks = ImmutableList.<Callback>builder()
.add(new CheckArguments(compiler))
.add(new CheckEmptyStatements(compiler))
.add(new CheckEnums(compiler))
.add(new CheckInterfaces(compiler))
Expand Down
2 changes: 0 additions & 2 deletions src/com/google/javascript/jscomp/DiagnosticGroups.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.javascript.jscomp.lint.CheckArguments;
import com.google.javascript.jscomp.lint.CheckDuplicateCase;
import com.google.javascript.jscomp.lint.CheckEmptyStatements;
import com.google.javascript.jscomp.lint.CheckEnums;
Expand Down Expand Up @@ -468,7 +467,6 @@ public DiagnosticGroup forName(String name) {
// provide optional suggestions.
public static final DiagnosticGroup LINT_CHECKS =
DiagnosticGroups.registerGroup("lintChecks", // undocumented
CheckArguments.BAD_ARGUMENTS_USAGE,
CheckEmptyStatements.USELESS_EMPTY_STATEMENT,
CheckEnums.COMPUTED_PROP_NAME_IN_ENUM,
CheckEnums.DUPLICATE_ENUM_VALUE,
Expand Down
2 changes: 0 additions & 2 deletions src/com/google/javascript/jscomp/LintPassConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import com.google.common.collect.ImmutableList;
import com.google.javascript.jscomp.NodeTraversal.Callback;
import com.google.javascript.jscomp.lint.CheckArguments;
import com.google.javascript.jscomp.lint.CheckDuplicateCase;
import com.google.javascript.jscomp.lint.CheckEmptyStatements;
import com.google.javascript.jscomp.lint.CheckEnums;
Expand Down Expand Up @@ -107,7 +106,6 @@ protected CompilerPass create(AbstractCompiler compiler) {
return new CombinedCompilerPass(
compiler,
ImmutableList.<Callback>of(
new CheckArguments(compiler),
new CheckDuplicateCase(compiler),
new CheckEmptyStatements(compiler),
new CheckEnums(compiler),
Expand Down
86 changes: 0 additions & 86 deletions src/com/google/javascript/jscomp/lint/CheckArguments.java

This file was deleted.

51 changes: 0 additions & 51 deletions test/com/google/javascript/jscomp/lint/CheckArgumentsTest.java

This file was deleted.

0 comments on commit 3734b26

Please sign in to comment.