From d43ac97ddb2108968d9ce7dc7d0711657f1d43cd Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Sun, 11 Aug 2024 17:01:53 +0200 Subject: [PATCH] FileIndexesValuesApplier: remove unused concatenation from every application GitOrigin-RevId: 986266d7f0360670cd95077a266e27c616c1c26a --- .../intellij/util/indexing/FileIndexesValuesApplier.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/util/indexing/FileIndexesValuesApplier.java b/platform/lang-impl/src/com/intellij/util/indexing/FileIndexesValuesApplier.java index f65ce8ae2bfa..4304404a55a8 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileIndexesValuesApplier.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileIndexesValuesApplier.java @@ -147,7 +147,7 @@ public final class FileIndexesValuesApplier { if (getApplicationMode() == ApplicationMode.SameThreadOutsideReadLock) { separateApplicationTimeNanos.set(System.nanoTime() - startTime); - applyModifications(file, -1, null, callback, "same thread"); + applyModifications(file, -1, null, callback); return; } @@ -169,7 +169,7 @@ public final class FileIndexesValuesApplier { if (executorsToSchedule.get(i)) { var executorIndex = i; scheduleIndexWriting(executorIndex, - () -> applyModifications(file, executorIndex, syncCounter, callback, "executor " + executorIndex)); + () -> applyModifications(file, executorIndex, syncCounter, callback)); } } @@ -205,8 +205,7 @@ public final class FileIndexesValuesApplier { private void applyModifications(@NotNull VirtualFile file, int indexerFilter, @Nullable AtomicInteger syncCounter, - @Nullable Runnable finishCallback, - @NotNull String debugThreadString) { + @Nullable Runnable finishCallback) { var startTime = System.nanoTime(); boolean allModificationsSuccessful = true; try {