mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove LookupImpl.clear which even Rider seems not to need (IDEA-CR-60922)
GitOrigin-RevId: 162ea2d960fa6dd50d554f6133652318011745d8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8ef9a1ba92
commit
b0d9f51d6a
-3
@@ -165,9 +165,6 @@ open class BaseCompletionLookupArranger(@JvmField protected val myProcess: Compl
|
||||
trimToLimit(createContext())
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
override fun clear() = super.clear()
|
||||
|
||||
@Synchronized
|
||||
override fun itemPattern(element: LookupElement): String = super.itemPattern(element)
|
||||
|
||||
|
||||
@@ -30,13 +30,6 @@ public abstract class LookupArranger implements WeighingContext {
|
||||
updateCache(item);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
myItems.clear();
|
||||
myMatchingItems.clear();
|
||||
myExactPrefixItems.clear();
|
||||
myInexactPrefixItems.clear();
|
||||
}
|
||||
|
||||
private void updateCache(LookupElement item) {
|
||||
if (!prefixMatches(item)) {
|
||||
return;
|
||||
|
||||
@@ -276,10 +276,6 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable,
|
||||
return true;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
myArranger.clear();
|
||||
}
|
||||
|
||||
private void addDummyItems(int count) {
|
||||
EmptyLookupItem dummy = new EmptyLookupItem("loading...", true);
|
||||
for (int i = count; i > 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user