Drop IncrementalCompilerRunner::markDirty and its override

This commit is contained in:
Denis Zharkov
2017-11-02 17:34:37 +03:00
parent 1702775738
commit 26393d738f
2 changed files with 2 additions and 11 deletions
@@ -132,10 +132,6 @@ abstract class IncrementalCompilerRunner<
}
}
protected open fun markDirty(caches: CacheManager, dirtySources: List<File>) {
caches.platformCache.markDirty(dirtySources)
}
protected abstract fun updateCaches(
services: Services,
caches: CacheManager,
@@ -233,15 +233,10 @@ class IncrementalJvmCompilerRunner(
}
}
private var outdatedClasses: Iterable<JvmClassName> = emptyList()
override fun markDirty(caches: IncrementalJvmCachesManager, dirtySources: List<File>) {
outdatedClasses = caches.platformCache.classesBySources(dirtySources)
super.markDirty(caches, dirtySources)
}
override fun postCompilationHook(exitCode: ExitCode) {
if (exitCode == ExitCode.OK) {
kaptAnnotationsFileUpdater?.updateAnnotations(outdatedClasses)
// TODO: Is it ok that argument always was an empty list?
kaptAnnotationsFileUpdater?.updateAnnotations(emptyList())
}
else {
kaptAnnotationsFileUpdater?.revert()