From 18560db373047680f222a6bedbcb9dcb7442a3e4 Mon Sep 17 00:00:00 2001 From: Alexander Likhachev Date: Tue, 5 Jul 2022 18:00:07 +0200 Subject: [PATCH] [IC] Remove unused variable declaration Previously it was introduced to make `when` exhaustive, but now all the `when` operators on enums are exhaustive --- .../kotlin/incremental/IncrementalJsCompilerRunner.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunner.kt b/compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunner.kt index 6c28c348c6b..e8389b4c6e6 100644 --- a/compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunner.kt +++ b/compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunner.kt @@ -137,8 +137,7 @@ class IncrementalJsCompilerRunner( caches.lookupCache.lookupSymbols.map { if (it.scope.isBlank()) it.name else it.scope }.distinct() ) - @Suppress("UNUSED_VARIABLE") // for sealed when - val unused = when (classpathChanges) { + when (classpathChanges) { is ChangesEither.Unknown -> { reporter.report { "Could not get classpath's changes: ${classpathChanges.reason}" } return CompilationMode.Rebuild(classpathChanges.reason)