Remove compiledWithErrors param

`updateIncrementalCache` is not called when
code does not compile.
This commit is contained in:
Alexey Tsvetkov
2017-06-30 21:01:38 +03:00
parent d1fd88fb8e
commit 508d96836c
2 changed files with 4 additions and 7 deletions
@@ -78,8 +78,7 @@ fun makeCompileServices(
fun updateIncrementalCache(
generatedFiles: List<GeneratedFile<*>>,
cache: IncrementalCacheImpl,
compiledWithErrors: Boolean
cache: IncrementalCacheImpl
): CompilationResult {
var changesInfo = CompilationResult.NO_CHANGES
for (generatedFile in generatedFiles) {
@@ -89,10 +88,8 @@ fun updateIncrementalCache(
}
}
if (!compiledWithErrors) {
val newChangesInfo = cache.clearCacheForRemovedClasses()
changesInfo += newChangesInfo
}
val newChangesInfo = cache.clearCacheForRemovedClasses()
changesInfo += newChangesInfo
return changesInfo
}