From 82d33dfbb8999b526a690d3b40c8adf9f80ce34f Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Sat, 23 Nov 2019 16:58:44 +0100 Subject: [PATCH] `profilesShutdown` event is not used - do not dispatch on project close GitOrigin-RevId: a25d66d632c11ca4f2bc2d6b41938660d76425e9 --- .../src/com/intellij/profile/ProfileChangeAdapter.java | 3 --- .../profile/codeInspection/ProjectInspectionProfileManager.kt | 2 -- 2 files changed, 5 deletions(-) diff --git a/platform/analysis-api/src/com/intellij/profile/ProfileChangeAdapter.java b/platform/analysis-api/src/com/intellij/profile/ProfileChangeAdapter.java index 5b4a9a074f26..b780a2f929ef 100644 --- a/platform/analysis-api/src/com/intellij/profile/ProfileChangeAdapter.java +++ b/platform/analysis-api/src/com/intellij/profile/ProfileChangeAdapter.java @@ -16,7 +16,4 @@ public interface ProfileChangeAdapter { default void profilesInitialized() { } - - default void profilesShutdown() { - } } diff --git a/platform/analysis-impl/src/com/intellij/profile/codeInspection/ProjectInspectionProfileManager.kt b/platform/analysis-impl/src/com/intellij/profile/codeInspection/ProjectInspectionProfileManager.kt index 949690e32b64..88d9b4f03be9 100644 --- a/platform/analysis-impl/src/com/intellij/profile/codeInspection/ProjectInspectionProfileManager.kt +++ b/platform/analysis-impl/src/com/intellij/profile/codeInspection/ProjectInspectionProfileManager.kt @@ -115,8 +115,6 @@ open class ProjectInspectionProfileManager(val project: Project) : BaseInspectio val cleanupInspectionProfilesRunnable = { cleanupSchemes(project) (ServiceManager.getServiceIfCreated(InspectionProfileManager::class.java) as BaseInspectionProfileManager?)?.cleanupSchemes(project) - this@ProjectInspectionProfileManager.project.messageBus.syncPublisher(ProfileChangeAdapter.TOPIC).profilesShutdown() - Unit } if (app.isUnitTestMode || app.isHeadlessEnvironment) {