[gnome-commander] Remove not needed methods for creating GnomeVFSURI structures



commit 664d343916f71351cd17c4ab697ef303631c7442
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Sep 25 23:25:37 2021 +0200

    Remove not needed methods for creating GnomeVFSURI structures

 src/gnome-cmd-con-remote.cc | 14 --------------
 src/gnome-cmd-con.cc        | 10 ----------
 src/gnome-cmd-con.h         |  2 --
 3 files changed, 26 deletions(-)
---
diff --git a/src/gnome-cmd-con-remote.cc b/src/gnome-cmd-con-remote.cc
index fd61ac67..34cca978 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -126,19 +126,6 @@ static gboolean remote_open_is_needed (GnomeCmdCon *con)
 }
 
 
-static GnomeVFSURI *remote_create_uri (GnomeCmdCon *con, GnomeCmdPath *path)
-{
-    g_return_val_if_fail (con->uri != nullptr, nullptr);
-
-    GnomeVFSURI *u0 = gnome_vfs_uri_new (con->uri);
-    GnomeVFSURI *u1 = gnome_vfs_uri_append_path (u0, path->get_path());
-
-    gnome_vfs_uri_unref (u0);
-
-    return u1;
-}
-
-
 static GFile *remote_create_gfile (GnomeCmdCon *con, GnomeCmdPath *path)
 {
     g_return_val_if_fail (con->uri != nullptr, nullptr);
@@ -188,7 +175,6 @@ static void class_init (GnomeCmdConRemoteClass *klass)
     con_class->close = remote_close;
     con_class->cancel_open = remote_cancel_open;
     con_class->open_is_needed = remote_open_is_needed;
-    con_class->create_uri = remote_create_uri;
     con_class->create_gfile = remote_create_gfile;
     con_class->create_path = remote_create_path;
 }
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 96b2c646..a228ca48 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -385,16 +385,6 @@ gboolean gnome_cmd_con_close (GnomeCmdCon *con)
 }
 
 
-GnomeVFSURI *gnome_cmd_con_create_uri (GnomeCmdCon *con, GnomeCmdPath *path)
-{
-    g_return_val_if_fail (GNOME_CMD_IS_CON (con), nullptr);
-
-    GnomeCmdConClass *klass = GNOME_CMD_CON_GET_CLASS (con);
-
-    return klass->create_uri (con, path);
-}
-
-
 GFile *gnome_cmd_con_create_gfile (GnomeCmdCon *con, GnomeCmdPath *path)
 {
     g_return_val_if_fail (GNOME_CMD_IS_CON (con), nullptr);
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index 6a58a18e..d32074f2 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -132,7 +132,6 @@ struct GnomeCmdConClass
     void (* cancel_open) (GnomeCmdCon *con);
     gboolean (* close) (GnomeCmdCon *con);
     gboolean (* open_is_needed) (GnomeCmdCon *con);
-    GnomeVFSURI *(* create_uri) (GnomeCmdCon *con, GnomeCmdPath *path);
     GFile *(* create_gfile) (GnomeCmdCon *con, GnomeCmdPath *path);
     GnomeCmdPath *(* create_path) (GnomeCmdCon *con, const gchar *path_str);
 };
@@ -182,7 +181,6 @@ inline void gnome_cmd_con_set_uri (GnomeCmdCon *con, const std::string &uri)
     con->uri = uri.empty() ? NULL : g_strdup (uri.c_str());
 }
 
-GnomeVFSURI *gnome_cmd_con_create_uri (GnomeCmdCon *con, GnomeCmdPath *path);
 GFile *gnome_cmd_con_create_gfile (GnomeCmdCon *con, GnomeCmdPath *path);
 
 GnomeCmdPath *gnome_cmd_con_create_path (GnomeCmdCon *con, const gchar *path_str);


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