[gtk/matthiasc/for-main] paperdialog: Drop an unused function




commit ac87c72797afe6b810b43d53962da3b74999884c
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 7 22:00:23 2022 -0400

    paperdialog: Drop an unused function
    
    This gets rid of a GtkListStore use.

 gtk/gtkcustompaperunixdialog.c | 23 -----------------------
 gtk/gtkcustompaperunixdialog.h |  1 -
 2 files changed, 24 deletions(-)
---
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 3ed3949ecf..35d379484a 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -197,29 +197,6 @@ _gtk_load_custom_papers (void)
   return g_list_reverse (result);
 }
 
-void
-_gtk_print_load_custom_papers (GtkListStore *store)
-{
-  GtkTreeIter iter;
-  GList *papers, *p;
-  GtkPageSetup *page_setup;
-
-  gtk_list_store_clear (store);
-
-  papers = _gtk_load_custom_papers ();
-  for (p = papers; p; p = p->next)
-    {
-      page_setup = p->data;
-      gtk_list_store_append (store, &iter);
-      gtk_list_store_set (store, &iter,
-                          0, page_setup,
-                          -1);
-      g_object_unref (page_setup);
-    }
-
-  g_list_free (papers);
-}
-
 void
 gtk_print_load_custom_papers (GListStore *store)
 {
diff --git a/gtk/gtkcustompaperunixdialog.h b/gtk/gtkcustompaperunixdialog.h
index 8f96bf91d2..b123ee9392 100644
--- a/gtk/gtkcustompaperunixdialog.h
+++ b/gtk/gtkcustompaperunixdialog.h
@@ -33,7 +33,6 @@ GType             gtk_custom_paper_unix_dialog_get_type           (void) G_GNUC_
 GtkWidget *       _gtk_custom_paper_unix_dialog_new                (GtkWindow   *parent,
                                                                     const char *title);
 GtkUnit           _gtk_print_get_default_user_units                (void);
-void              _gtk_print_load_custom_papers                    (GtkListStore *store);
 void               gtk_print_load_custom_papers                    (GListStore *store);
 GList *           _gtk_load_custom_papers                          (void);
 


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