From f2295676bf42700b7a5cabf92c97f10d82f5abeb Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Thu, 23 Jul 2015 22:48:11 +0300 Subject: [PATCH] Minor: removed clear method from DirtyOutputClassesMap It's already has clean method from BasicMap --- .../kotlin/jps/incremental/IncrementalCacheImpl.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/IncrementalCacheImpl.kt b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/IncrementalCacheImpl.kt index 8d199357bc3..c048b0bad76 100644 --- a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/IncrementalCacheImpl.kt +++ b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/IncrementalCacheImpl.kt @@ -252,7 +252,7 @@ public class IncrementalCacheImpl(targetDataRoot: File) : StorageOwner, Incremen constantsMap.remove(className) inlineFunctionsMap.remove(className) } - dirtyOutputClassesMap.clear() + dirtyOutputClassesMap.clean() return recompilationDecision } @@ -732,10 +732,6 @@ public class IncrementalCacheImpl(targetDataRoot: File) : StorageOwner, Incremen return storage.getAllKeysWithExistingMapping() } - public fun clear() { - storage.getAllKeysWithExistingMapping().forEach { storage.remove(it) } - } - override fun dumpValue(value: Boolean) = "" }