From 34f639079bfdb161e2e5cccff88bf7c0a98c6a4e Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 2 Jul 2018 15:59:13 +0300 Subject: [PATCH] vcs: remove dead code This tree expander is no longer used in toolwindow header. follow-up: 53d18a62e1427ad9ee2529d6ff083799251cf0c8 --- .../intellij/openapi/vcs/changes/ChangesViewManager.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesViewManager.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesViewManager.java index 2dd6a9891585..6af704c77bcf 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesViewManager.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesViewManager.java @@ -29,7 +29,6 @@ import com.intellij.openapi.vcs.changes.actions.IgnoredSettingsAction; import com.intellij.openapi.vcs.changes.actions.ShowDiffPreviewAction; import com.intellij.openapi.vcs.changes.ui.*; import com.intellij.openapi.vfs.VirtualFile; -import com.intellij.openapi.wm.ToolWindow; import com.intellij.psi.impl.DebugUtil; import com.intellij.ui.JBColor; import com.intellij.ui.ScrollPaneFactory; @@ -455,12 +454,6 @@ public class ChangesViewManager implements ChangesViewI, ProjectComponent, Persi super(myView); } - @Override - public boolean isVisible(AnActionEvent event) { - ToolWindow toolWindow = event.getData(PlatformDataKeys.TOOL_WINDOW); - return toolWindow != null && toolWindow.getContentManager().getSelectedContent() == myContent; - } - @Override public void collapseAll() { TreeUtil.collapseAll(myView, 2);