[gimp: 2/2] app: remove unused function.




commit 6dae2c1d337969a471c420dbe6ad89ab2b583981
Author: Jehan <jehan girinstud io>
Date:   Mon Sep 21 20:06:20 2020 +0200

    app: remove unused function.
    
    gimp_ui_get_dialog() is not used anymore anywhere.

 app/tests/test-ui.c | 25 -------------------------
 1 file changed, 25 deletions(-)
---
diff --git a/app/tests/test-ui.c b/app/tests/test-ui.c
index cb8cf64194..8c44d2ad53 100644
--- a/app/tests/test-ui.c
+++ b/app/tests/test-ui.c
@@ -143,31 +143,6 @@ tool_options_editor_updates (gconstpointer data)
                    tool_info->help_id);
 }
 
-static GtkWidget *
-gimp_ui_get_dialog (const gchar *identifier)
-{
-  GtkWidget *result = NULL;
-  GList     *iter;
-
-  for (iter = gimp_dialog_factory_get_open_dialogs (gimp_dialog_factory_get_singleton ());
-       iter;
-       iter = g_list_next (iter))
-    {
-      GtkWidget *dialog = GTK_WIDGET (iter->data);
-      GimpDialogFactoryEntry *entry = NULL;
-
-      gimp_dialog_factory_from_widget (dialog, &entry);
-
-      if (strcmp (entry->identifier, identifier) == 0)
-        {
-          result = dialog;
-          break;
-        }
-    }
-
-  return result;
-}
-
 static void
 create_new_image_via_dialog (gconstpointer data)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]