mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] get rid of unused parameter
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+1
-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());
|
||||
|
||||
Reference in New Issue
Block a user