[groovy] clean up GrClosureType

This commit is contained in:
Daniil Ovchinnikov
2018-01-17 18:07:31 +03:00
parent e4556e78d1
commit ad7ebf74a8
@@ -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,