finally remove LookupElement#getGrouping() together with its ruby clients rework

This commit is contained in:
Peter Gromov
2009-09-16 15:19:37 +04:00
parent d9e5fe3757
commit b6092ce473
4 changed files with 1 additions and 18 deletions
@@ -77,13 +77,6 @@ public abstract class LookupElement extends UserDataHolderBase {
presentation.setItemText(getLookupString());
}
/**
* @deprecated use {@link com.intellij.codeInsight.completion.PrioritizedLookupElement}
*/
public int getGrouping() {
return 0;
}
@Nullable
public <T> T as(Class<T> aClass) {
//noinspection unchecked
@@ -102,11 +102,6 @@ public abstract class LookupElementDecorator<T extends LookupElement> extends Lo
return myDelegate.hashCode();
}
@Override
public int getGrouping() {
return myDelegate.getGrouping();
}
@NotNull
public static <T extends LookupElement> LookupElementDecorator<T> withInsertHandler(@NotNull T element, @NotNull final InsertHandler<? super LookupElementDecorator<T>> insertHandler) {
return new InsertingDecorator<T>(element, insertHandler);
@@ -14,6 +14,6 @@ public class GroupingWeigher extends CompletionWeigher {
return -prioritized.getGrouping();
}
return -element.getGrouping();
return 0;
}
}
@@ -298,11 +298,6 @@ public class LookupItem<T> extends MutableLookupElement<T> implements Comparable
return myPriority;
}
@Override
public final int getGrouping() {
return myGrouping;
}
@NotNull
public LookupItem<T> setPresentableText(@NotNull final String displayText) {
myPresentable = displayText;