[groovy] get rid of unused parameter

This commit is contained in:
Daniil Ovchinnikov
2016-06-28 16:03:23 +03:00
parent 50fcffc15b
commit a89769eb72
3 changed files with 3 additions and 5 deletions
@@ -25,7 +25,6 @@ import com.intellij.psi.tree.IElementType;
import com.intellij.psi.util.InheritanceUtil;
import com.intellij.psi.util.PsiUtil;
import com.intellij.psi.util.TypeConversionUtil;
import com.intellij.util.Function;
import com.intellij.util.containers.ComparatorUtil;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.containers.HashMap;
@@ -95,7 +94,7 @@ public class TypesUtil {
@NotNull GroovyPsiElement place,
PsiType[] argumentTypes,
boolean incompleteCode) {
return ResolveUtil.getMethodCandidates(thisType, ourOperationsToOperatorNames.get(tokenType), place, true, incompleteCode, false, argumentTypes);
return ResolveUtil.getMethodCandidates(thisType, ourOperationsToOperatorNames.get(tokenType), place, true, incompleteCode, argumentTypes);
}
@@ -194,7 +194,7 @@ public class GrIndexPropertyImpl extends GrExpressionImpl implements GrIndexProp
return GroovyResolveResult.EMPTY_ARRAY;
}
candidates = ResolveUtil.getMethodCandidates(thisType, name, invoked, true, incompleteCode, false, argTypes);
candidates = ResolveUtil.getMethodCandidates(thisType, name, invoked, true, incompleteCode, argTypes);
//hack for remove DefaultGroovyMethods.getAt(Object, ...)
if (candidates.length == 2) {
@@ -755,7 +755,7 @@ public class ResolveUtil {
@Nullable String methodName,
@NotNull PsiElement place,
@Nullable PsiType... argumentTypes) {
return getMethodCandidates(thisType, methodName, place, true, false, false, argumentTypes);
return getMethodCandidates(thisType, methodName, place, true, false, argumentTypes);
}
@NotNull
@@ -764,7 +764,6 @@ public class ResolveUtil {
@NotNull PsiElement place,
boolean resolveClosures,
boolean allVariants,
boolean byShape,
@Nullable PsiType... argumentTypes) {
if (methodName == null) return GroovyResolveResult.EMPTY_ARRAY;
thisType = TypesUtil.boxPrimitiveType(thisType, place.getManager(), place.getResolveScope());