diff --git a/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java b/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java index 6d24dbdc8135..269e5652f981 100644 --- a/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java +++ b/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java @@ -40,9 +40,6 @@ import java.util.Collection; public class LookupItemUtil{ private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.lookup.LookupItemUtil"); - private LookupItemUtil() { - } - @Nullable public static LookupElement addLookupItem(Collection set, @NotNull Object object) { return addLookupItem(set, object, new CamelHumpMatcher("")); @@ -124,9 +121,6 @@ public class LookupItemUtil{ if (s == null) { LOG.error("Null string for object: " + object + " of class " + (object != null ? object.getClass() : null)); } - if (object instanceof LookupValueWithTail) { - item.setAttribute(LookupItem.TAIL_TEXT_ATTR, " " + ((LookupValueWithTail)object).getTailText()); - } item.setLookupString(s); item.setTailType(tailType); diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionData.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionData.java index 9708c7b52168..2f3fe2bf6250 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionData.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionData.java @@ -260,9 +260,6 @@ public class CompletionData { if (object instanceof LookupValueWithUIHint && ((LookupValueWithUIHint) object).isBold()) { item.setBold(); } - if (object instanceof LookupValueWithTail) { - item.setAttribute(LookupItem.TAIL_TEXT_ATTR, " " + ((LookupValueWithTail)object).getTailText()); - } item.setAttribute(CompletionUtil.TAIL_TYPE_ATTR, tailType); return item; } diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java index f0ebb111e48b..e90c888ad20b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java @@ -43,10 +43,6 @@ public class LookupValueFactory { return new LookupValueWithIconAndHint(name, icon, hint); } - public static Object createLookupValueWithHintAndTail(@NotNull String name, @Nullable Icon icon, String hint, final String tail) { - return new LookupValueWithHintAndTail(name, icon, hint, tail); - } - public static class LookupValueWithIcon implements PresentableLookupValue, Iconable { private final String myName; private final Icon myIcon; @@ -100,19 +96,4 @@ public class LookupValueFactory { return false; } } - - public static class LookupValueWithHintAndTail extends LookupValueWithIconAndHint implements LookupValueWithTail { - private final String myTail; - - protected LookupValueWithHintAndTail(final String name, final Icon icon, final String hint, String tail) { - super(name, icon, hint); - myTail = tail; - } - - @Override - public String getTailText() { - return myTail; - } - } - } diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithTail.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithTail.java deleted file mode 100644 index 835cead200a6..000000000000 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithTail.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2000-2009 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.intellij.codeInsight.lookup; - -/** - * @author Dmitry Avdeev - * @deprecated use LookupElementBuilder - */ -public interface LookupValueWithTail { - String getTailText(); -}