From f94f8765be2b65129366f0e083853883ec9b2111 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Sun, 31 Jul 2016 18:10:25 +0300 Subject: [PATCH] [file-history] inline showTree method --- .../intellij/openapi/vcs/history/FileHistoryPanelImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java index 7ac4bc4df726..dd62d9f8e226 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java @@ -427,7 +427,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme } private void chooseView() { - if (showTree()) { + if (getConfiguration().SHOW_FILE_HISTORY_AS_TREE) { myDualView.switchToTheTreeMode(); } else { @@ -435,10 +435,6 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme } } - private boolean showTree() { - return getConfiguration().SHOW_FILE_HISTORY_AS_TREE; - } - private VcsConfiguration getConfiguration() { return VcsConfiguration.getInstance(myVcs.getProject()); }