[gimp] app: remove unused variables in GimpEditor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove unused variables in GimpEditor
- Date: Tue, 5 Jun 2018 16:48:41 +0000 (UTC)
commit 07ae01aba865da537680192795fd059fefc1bea9
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 5 16:07:02 2018 +0200
app: remove unused variables in GimpEditor
app/widgets/gimpeditor.c | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/app/widgets/gimpeditor.c b/app/widgets/gimpeditor.c
index 00937f8b28..21fcd98103 100644
--- a/app/widgets/gimpeditor.c
+++ b/app/widgets/gimpeditor.c
@@ -722,7 +722,6 @@ void
gimp_editor_set_box_style (GimpEditor *editor,
GtkBox *box)
{
- GimpGuiConfig *config = NULL;
GList *children;
GList *list;
gint content_spacing;
@@ -733,9 +732,6 @@ gimp_editor_set_box_style (GimpEditor *editor,
g_return_if_fail (GIMP_IS_EDITOR (editor));
g_return_if_fail (GTK_IS_BOX (box));
- if (editor->priv->ui_manager)
- config = GIMP_GUI_CONFIG (editor->priv->ui_manager->gimp->config);
-
gimp_editor_get_styling (editor,
&content_spacing,
&button_icon_size,
@@ -820,18 +816,10 @@ static GtkIconSize
gimp_editor_ensure_button_box (GimpEditor *editor,
GtkReliefStyle *button_relief)
{
- GimpGuiConfig *config = NULL;
- GtkIconSize button_icon_size;
- gint button_spacing;
- gint content_spacing;
-
- if (editor->priv->ui_manager)
- {
- Gimp *gimp;
+ GtkIconSize button_icon_size;
+ gint button_spacing;
+ gint content_spacing;
- gimp = editor->priv->ui_manager->gimp;
- config = GIMP_GUI_CONFIG (gimp->config);
- }
gimp_editor_get_styling (editor,
&content_spacing,
&button_icon_size,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]