[gnome-panel] libpanel-util: remove panel_show_uri_force_mime_type



commit 68aea39cd0a7a5316d4c485cad61a0842681fb9d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 8 01:51:48 2020 +0200

    libpanel-util: remove panel_show_uri_force_mime_type

 gnome-panel/libpanel-util/panel-show.c | 33 ---------------------------------
 gnome-panel/libpanel-util/panel-show.h |  6 ------
 2 files changed, 39 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-show.c b/gnome-panel/libpanel-util/panel-show.c
index 5cb853898..63773c4b4 100644
--- a/gnome-panel/libpanel-util/panel-show.c
+++ b/gnome-panel/libpanel-util/panel-show.c
@@ -159,36 +159,3 @@ panel_show_uri (GdkScreen    *screen,
 
        return _panel_show_handle_error (uri, screen, local_error, error);
 }
-
-gboolean
-panel_show_uri_force_mime_type (GdkScreen    *screen,
-                               const gchar  *uri,
-                               const gchar  *mime_type,
-                               guint32       timestamp,
-                               GError      **error)
-{
-       GFile    *file;
-       GAppInfo *app;
-       gboolean  ret;
-
-       g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
-       g_return_val_if_fail (uri != NULL, FALSE);
-       g_return_val_if_fail (mime_type != NULL, FALSE);
-       g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
-
-       file = g_file_new_for_uri (uri);
-       app = g_app_info_get_default_for_type (mime_type,
-                                              !g_file_is_native (file));
-       g_object_unref (file);
-
-       if (app == NULL) {
-               /* no application for the mime type, so let's fallback on
-                * automatic detection */
-               return panel_show_uri (screen, uri, timestamp, error);
-       }
-
-       ret = panel_app_info_launch_uri (app, uri, screen, timestamp, error);
-       g_object_unref (app);
-
-       return ret;
-}
diff --git a/gnome-panel/libpanel-util/panel-show.h b/gnome-panel/libpanel-util/panel-show.h
index c39fbc645..490961b69 100644
--- a/gnome-panel/libpanel-util/panel-show.h
+++ b/gnome-panel/libpanel-util/panel-show.h
@@ -32,12 +32,6 @@ gboolean panel_show_uri (GdkScreen    *screen,
                         guint32       timestamp,
                         GError      **error);
 
-gboolean panel_show_uri_force_mime_type (GdkScreen    *screen,
-                                        const gchar  *uri,
-                                        const gchar  *mime_type,
-                                        guint32       timestamp,
-                                        GError      **error);
-
 G_END_DECLS
 
 #endif /* PANEL_SHOW_H */


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