mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] clean up GrClosureType
This commit is contained in:
+3
-18
@@ -1,4 +1,6 @@
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
/*
|
||||
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
*/
|
||||
package org.jetbrains.plugins.groovy.lang.psi.impl;
|
||||
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
@@ -146,23 +148,6 @@ public class GrClosureType extends GrLiteralClassType {
|
||||
return create(signature, resolveScope, facade,LanguageLevel.JDK_1_5, shouldInferTypeParameters);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static GrClosureType create(@NotNull PsiMethod method, @NotNull PsiSubstitutor substitutor) {
|
||||
final GrClosureSignature signature = GrClosureSignatureUtil.createSignature(method, substitutor);
|
||||
final GlobalSearchScope scope = GlobalSearchScope.allScope(method.getProject());
|
||||
final JavaPsiFacade facade = JavaPsiFacade.getInstance(method.getProject());
|
||||
return create(signature, scope, facade, LanguageLevel.JDK_1_5, true);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static GrClosureType create(@NotNull PsiParameter[] parameters,
|
||||
@Nullable PsiType returnType,
|
||||
JavaPsiFacade facade,
|
||||
GlobalSearchScope scope,
|
||||
LanguageLevel languageLevel) {
|
||||
return create(GrClosureSignatureUtil.createSignature(parameters, returnType), scope, facade, languageLevel, true);
|
||||
}
|
||||
|
||||
public static GrClosureType create(@NotNull GrSignature signature,
|
||||
GlobalSearchScope scope,
|
||||
JavaPsiFacade facade,
|
||||
|
||||
Reference in New Issue
Block a user