[gnome-commander] Remove deprecated method using GnomeVFSFileInfo



commit 7eefb88cbb1b0877f48f47b956b2b1626c160225
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jul 11 21:50:55 2021 +0200

    Remove deprecated method using GnomeVFSFileInfo

 src/gnome-cmd-file.cc | 12 ------------
 src/gnome-cmd-file.h  |  1 -
 2 files changed, 13 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 42d6b158..048ab5f4 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -580,18 +580,6 @@ gchar *GnomeCmdFile::get_default_application_name(GAppInfo *gAppInfo)
 }
 
 
-GnomeVFSMimeApplication *GnomeCmdFile::get_default_gnome_vfs_app_for_mime_type()
-{
-    g_return_val_if_fail (GNOME_CMD_IS_FILE (this), nullptr);
-
-    auto uri_str = this->get_uri_str();
-    auto *app = gnome_vfs_mime_get_default_application_for_uri (uri_str, this->info->mime_type);
-
-    g_free (uri_str);
-    return app;
-}
-
-
 GFile *GnomeCmdFile::get_gfile(const gchar *name)
 {
     if (!has_parent_dir (this))
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index b9b50c66..831d07dd 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -113,7 +113,6 @@ struct GnomeCmdFile
     gchar *get_default_application_action_label(GAppInfo *gAppInfo);
     gchar *get_default_application_name(GAppInfo *gAppInfo);
     GAppInfo *GetAppInfoForContentType();
-    GnomeVFSMimeApplication *get_default_gnome_vfs_app_for_mime_type();
 };
 
 struct GnomeCmdFileClass


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