Drop IncrementalCompilerRunner::markDirty and its override
This commit is contained in:
-4
@@ -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,
|
||||
|
||||
+2
-7
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user