From 348de83f1da86470a2ff1ac1b3ca2e93973eb4f1 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 7 Dec 2016 21:48:39 +0300 Subject: [PATCH] ui: cleanup - remove duplicated logic same operations will be performed in `createSouthPanel()` --- .../src/com/intellij/openapi/ui/DialogWrapper.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java index da08d4e28381..d335d2f787a4 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java @@ -1076,19 +1076,7 @@ public abstract class DialogWrapper { */ @NotNull protected Action[] createActions() { - if (getHelpId() == null) { - if (SystemInfo.isMac) { - return new Action[]{getCancelAction(), getOKAction()}; - } - - return new Action[]{getOKAction(), getCancelAction()}; - } - else { - if (SystemInfo.isMac) { - return new Action[]{getHelpAction(), getCancelAction(), getOKAction()}; - } - return new Action[]{getOKAction(), getCancelAction(), getHelpAction()}; - } + return new Action[]{getOKAction(), getCancelAction(), getHelpAction()}; } @NotNull