mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
indexes: dead code
GitOrigin-RevId: f6f43c44bc364aca7d48943d74c09d8b51166568
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b02a166280
commit
355a64d8da
@@ -199,16 +199,6 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx {
|
||||
initComponent();
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public void scheduleFullIndexesRebuild(@NotNull String reason) {
|
||||
RegisteredIndexes registeredIndexes = myRegisteredIndexes;
|
||||
if (registeredIndexes == null) {
|
||||
scheduleFullIndexesRescan(registeredIndexes.getState().getIndexIDs(), reason);
|
||||
} else {
|
||||
RebuildStatus.rebuildAfterInitialization();
|
||||
}
|
||||
}
|
||||
|
||||
void scheduleFullIndexesRescan(@NotNull Collection<ID<?, ?>> indexesToRebuild, @NotNull String reason) {
|
||||
cleanupProcessedFlag();
|
||||
doClearIndices(id -> indexesToRebuild.contains(id));
|
||||
|
||||
@@ -18,10 +18,9 @@ public enum RebuildStatus {
|
||||
DOING_REBUILD;
|
||||
|
||||
private static final Map<ID<?, ?>, AtomicReference<RebuildStatus>> ourRebuildStatus = new THashMap<>();
|
||||
private static volatile boolean ourRebuildAfterInitialization;
|
||||
|
||||
public static void registerIndex(ID<?, ?> indexId) {
|
||||
ourRebuildStatus.put(indexId, new AtomicReference<>(ourRebuildAfterInitialization ? REQUIRES_REBUILD : OK));
|
||||
ourRebuildStatus.put(indexId, new AtomicReference<>(OK));
|
||||
}
|
||||
|
||||
static boolean isOk(ID<?, ?> indexId) {
|
||||
@@ -60,11 +59,6 @@ public enum RebuildStatus {
|
||||
}
|
||||
|
||||
static void reset() {
|
||||
ourRebuildAfterInitialization = false;
|
||||
ourRebuildStatus.clear();
|
||||
}
|
||||
|
||||
static void rebuildAfterInitialization() {
|
||||
ourRebuildAfterInitialization = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user