Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=259593984
  • Loading branch information
ronshapiro authored and nick-someone committed Jul 24, 2019
1 parent bf3ec8f commit 80eed45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.google.errorprone.matchers.method;

import com.google.errorprone.VisitorState;
import com.google.errorprone.util.ASTHelpers;
import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.MethodInvocationTree;
Expand All @@ -26,10 +25,10 @@

interface BaseMethodMatcher {
@Nullable
MatchState match(ExpressionTree tree, VisitorState state);
MatchState match(ExpressionTree tree);

BaseMethodMatcher METHOD =
(tree, state) -> {
tree -> {
Symbol sym = ASTHelpers.getSymbol(tree);
if (!(sym instanceof MethodSymbol)) {
return null;
Expand All @@ -45,7 +44,7 @@ interface BaseMethodMatcher {
};

BaseMethodMatcher CONSTRUCTOR =
(tree, state) -> {
tree -> {
switch (tree.getKind()) {
case NEW_CLASS:
case METHOD_INVOCATION:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private MethodMatcherImpl append(Constraint c) {

@Override
public boolean matches(ExpressionTree tree, VisitorState state) {
MatchState method = baseMatcher.match(tree, state);
MatchState method = baseMatcher.match(tree);
if (method == null) {
return false;
}
Expand Down

0 comments on commit 80eed45

Please sign in to comment.