[gnome-commander] Remove unused method to create a GnomeCmdApp instance via gnome-vfs



commit 6bfab6cef41ac1e0a7729cea6d2b8eaf9db77288
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jan 17 23:22:50 2021 +0100

    Remove unused method to create a GnomeCmdApp instance via gnome-vfs

 src/gnome-cmd-app.cc | 20 --------------------
 src/gnome-cmd-app.h  |  2 --
 2 files changed, 22 deletions(-)
---
diff --git a/src/gnome-cmd-app.cc b/src/gnome-cmd-app.cc
index 85534930..fec833c7 100644
--- a/src/gnome-cmd-app.cc
+++ b/src/gnome-cmd-app.cc
@@ -122,26 +122,6 @@ static char* panel_find_icon (GtkIconTheme *icon_theme, const char *icon_name, g
 }
 
 
-GnomeCmdApp *gnome_cmd_app_new_from_vfs_app (GnomeVFSMimeApplication *vfs_app)
-{
-    g_return_val_if_fail (vfs_app != nullptr, nullptr);
-
-    char *icon = panel_find_icon (gtk_icon_theme_get_default (), gnome_vfs_mime_application_get_icon 
(vfs_app), 16);
-
-    GnomeCmdApp *rel_value = gnome_cmd_app_new_with_values (vfs_app->name,
-                                          vfs_app->command,
-                                          icon,
-                                          APP_TARGET_ALL_FILES,
-                                          nullptr,
-                                          vfs_app->expects_uris == 
GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS,
-                                          vfs_app->can_open_multiple_files,
-                                          vfs_app->requires_terminal,
-                                          nullptr);
-    g_free (icon);
-    return rel_value;
-}
-
-
 GnomeCmdApp *gnome_cmd_app_new_from_app_info (GAppInfo *gAppInfo)
 {
     g_return_val_if_fail (gAppInfo != nullptr, nullptr);
diff --git a/src/gnome-cmd-app.h b/src/gnome-cmd-app.h
index e7735bc1..95429834 100644
--- a/src/gnome-cmd-app.h
+++ b/src/gnome-cmd-app.h
@@ -52,8 +52,6 @@ struct GnomeCmdApp
 
 GnomeCmdApp *gnome_cmd_app_new ();
 
-GnomeCmdApp *gnome_cmd_app_new_from_vfs_app (GnomeVFSMimeApplication *vfs_app);
-
 GnomeCmdApp *gnome_cmd_app_new_from_app_info (GAppInfo *gAppInfo);
 
 GnomeCmdApp *gnome_cmd_app_new_with_values (const gchar *name,


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