From 1760d56017ae950ad813728ceae548cc1d5431b7 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Fri, 7 Sep 2012 18:19:40 +0400 Subject: [PATCH] removed unnecessary more util method --- .../jet/lang/resolve/DescriptorUtils.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorUtils.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorUtils.java index 43567f8bd4b..d3aa33794c5 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorUtils.java @@ -16,12 +16,10 @@ package org.jetbrains.jet.lang.resolve; -import com.google.common.base.Predicate; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jetbrains.jet.lang.ModuleConfiguration; import org.jetbrains.jet.lang.descriptors.*; import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor; import org.jetbrains.jet.lang.psi.JetElement; @@ -389,26 +387,4 @@ public class DescriptorUtils { Collections.sort(resultList); return resultList; } - - @Nullable - public static Predicate createIsNotHiddenByKotlinAnalogPredicate( - @NotNull DeclarationDescriptor descriptor, - final @Nullable ModuleConfiguration moduleConfiguration - ) { - if (moduleConfiguration == null || moduleConfiguration.getKotlinAnalogs(getFQName(descriptor)).isEmpty()) return null; - return new Predicate() { - @Override - public boolean apply(@Nullable DeclarationDescriptor descriptor) { - if (descriptor == null) return false; - Collection kotlinAnalogs = - moduleConfiguration.getKotlinAnalogs(getFQName(descriptor)); - for (ClassDescriptor kotlinAnalog : kotlinAnalogs) { - if (kotlinAnalog.getName().equals(descriptor.getName())) { - return false; - } - } - return true; - } - }; - } }