[gedit] File choosers: remove gedit_file_chooser_dialog_get_files()



commit a5db3bbd76419b480aef7a394cf59449004c8955
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 11 16:31:55 2020 +0200

    File choosers: remove gedit_file_chooser_dialog_get_files()

 gedit/gedit-file-chooser-dialog-gtk.c |  8 --------
 gedit/gedit-file-chooser-dialog.c     | 13 -------------
 gedit/gedit-file-chooser-dialog.h     |  4 ----
 3 files changed, 25 deletions(-)
---
diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c
index cbab77949..3af1add3a 100644
--- a/gedit/gedit-file-chooser-dialog-gtk.c
+++ b/gedit/gedit-file-chooser-dialog-gtk.c
@@ -176,13 +176,6 @@ chooser_get_file (GeditFileChooserDialog *dialog)
        return gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
 }
 
-
-static GSList *
-chooser_get_files (GeditFileChooserDialog *dialog)
-{
-       return gtk_file_chooser_get_files (GTK_FILE_CHOOSER (dialog));
-}
-
 static void
 chooser_set_do_overwrite_confirmation (GeditFileChooserDialog *dialog,
                                        gboolean                overwrite_confirmation)
@@ -232,7 +225,6 @@ gedit_file_chooser_dialog_gtk_chooser_init (gpointer g_iface,
        iface->set_current_name = chooser_set_current_name;
        iface->set_file = chooser_set_file;
        iface->get_file = chooser_get_file;
-       iface->get_files = chooser_get_files;
        iface->set_do_overwrite_confirmation = chooser_set_do_overwrite_confirmation;
        iface->show = chooser_show;
        iface->destroy = chooser_destroy;
diff --git a/gedit/gedit-file-chooser-dialog.c b/gedit/gedit-file-chooser-dialog.c
index b578ca79e..af2454a9b 100644
--- a/gedit/gedit-file-chooser-dialog.c
+++ b/gedit/gedit-file-chooser-dialog.c
@@ -173,19 +173,6 @@ gedit_file_chooser_dialog_set_file (GeditFileChooserDialog *dialog,
        iface->set_file (dialog, file);
 }
 
-GSList *
-gedit_file_chooser_dialog_get_files (GeditFileChooserDialog *dialog)
-{
-       GeditFileChooserDialogInterface *iface;
-
-       g_return_val_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (dialog), NULL);
-
-       iface = GEDIT_FILE_CHOOSER_DIALOG_GET_IFACE (dialog);
-       g_return_val_if_fail (iface->get_files != NULL, NULL);
-
-       return iface->get_files (dialog);
-}
-
 GFile *
 gedit_file_chooser_dialog_get_file (GeditFileChooserDialog *dialog)
 {
diff --git a/gedit/gedit-file-chooser-dialog.h b/gedit/gedit-file-chooser-dialog.h
index 03112e8db..af83e68f3 100644
--- a/gedit/gedit-file-chooser-dialog.h
+++ b/gedit/gedit-file-chooser-dialog.h
@@ -59,8 +59,6 @@ struct _GeditFileChooserDialogInterface
 
        GFile * (*get_file)             (GeditFileChooserDialog *dialog);
 
-       GSList *(*get_files)            (GeditFileChooserDialog *dialog);
-
        void    (*set_do_overwrite_confirmation)
                                        (GeditFileChooserDialog *dialog,
                                         gboolean                overwrite_confirmation);
@@ -114,8 +112,6 @@ void                 gedit_file_chooser_dialog_set_file             
(GeditFileChooserDialog   *dialog,
 
 GFile          *gedit_file_chooser_dialog_get_file             (GeditFileChooserDialog   *dialog);
 
-GSList         *gedit_file_chooser_dialog_get_files            (GeditFileChooserDialog   *dialog);
-
 void            gedit_file_chooser_dialog_set_do_overwrite_confirmation (
                                                                 GeditFileChooserDialog   *dialog,
                                                                 gboolean                  
overwrite_confirmation);


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