diff options
author | Florian Müllner <fmuellner@gnome.org> | 2018-03-03 00:31:00 +0100 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2018-03-03 00:47:42 +0100 |
commit | 7d132eb7c76cac3b6c4e3ab742e579a0586c1545 (patch) | |
tree | 2562072a7829f31783e28288e9acf864e7675fca | |
parent | 81dfcb85caeb9e9dd7d3d22c40e037f48844b9b7 (diff) | |
download | gnome-shell-wip/fmuellner/minor-cleanup.tar.gz |
modalDialog: Remove some unused codewip/fmuellner/minor-cleanup
No need to figure out an x_alignment variable that hasn't been used
since commit 0722c06275a3d ...
-rw-r--r-- | js/ui/modalDialog.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index f97a2338c..19c5eda3a 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -100,21 +100,8 @@ var ModalDialog = new Lang.Class({ setButtons(buttons) { this.clearButtons(); - for (let i = 0; i < buttons.length; i++) { - let buttonInfo = buttons[i]; - - let x_alignment; - if (buttons.length == 1) - x_alignment = St.Align.END; - else if (i == 0) - x_alignment = St.Align.START; - else if (i == buttons.length - 1) - x_alignment = St.Align.END; - else - x_alignment = St.Align.MIDDLE; - + for (let buttonInfo of buttons) this.addButton(buttonInfo); - } }, addButton(buttonInfo) { |