From ad7ebf74a85a013f0bcead251f431d32450af173 Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Mon, 18 Dec 2017 20:22:32 +0300 Subject: [PATCH] [groovy] clean up GrClosureType --- .../groovy/lang/psi/impl/GrClosureType.java | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrClosureType.java b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrClosureType.java index ed382e1cf80f..a8a21eec61cc 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrClosureType.java +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrClosureType.java @@ -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,