Remove unused ProjectRootModificationTrackerFixer.kt

This commit is contained in:
Nikolay Krasko
2019-11-29 17:57:39 +03:00
parent c12599a045
commit 0cbb3a3956
@@ -1,29 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.caches
import com.intellij.ProjectTopics
import com.intellij.openapi.components.ProjectComponent
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ModuleRootEvent
import com.intellij.openapi.roots.ModuleRootListener
import com.intellij.openapi.roots.ProjectRootManager
// This is a workaround for IDEA < 183. For details, see IDEA-200525.
class ProjectRootModificationTrackerFixer(val project: Project) : ProjectComponent {
override fun initComponent() {
project.messageBus.connect(project).subscribe(
ProjectTopics.PROJECT_ROOTS,
object : ModuleRootListener {
override fun rootsChanged(event: ModuleRootEvent) {
// Forcefully increment modification counter. This would cause invalidation of
// all caches that depend on ProjectRootModificationTracker tracker.
ProjectRootManager.getInstance(project).incModificationCount()
}
}
)
}
}