vcs: remove dead code

This tree expander is no longer used in toolwindow header.

follow-up: 53d18a62e1
This commit is contained in:
Aleksey Pivovarov
2018-07-02 16:03:59 +03:00
parent 340e3aab58
commit 34f639079b
@@ -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);