[gnome-commander] Remove unused GnomeVFS util function
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Remove unused GnomeVFS util function
- Date: Fri, 27 Aug 2021 18:14:06 +0000 (UTC)
commit e743b26e1dbfc1cf5f85d2b77c8debe17a71b624
Author: Uwe Scholz <u scholz83 gmx de>
Date: Fri Aug 13 18:01:05 2021 +0200
Remove unused GnomeVFS util function
src/utils.cc | 30 ------------------------------
src/utils.h | 1 -
2 files changed, 31 deletions(-)
---
diff --git a/src/utils.cc b/src/utils.cc
index b1e693ed..cdc43de3 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -857,36 +857,6 @@ gboolean create_dir_if_needed (const gchar *dpath)
}
-void fix_uri (GnomeVFSURI *uri)
-{
-#ifdef FIX_PW_HACK
- gchar *p, *t;
- const gchar *hn, *pw;
-
- hn = gnome_vfs_uri_get_host_name (uri);
- if (!hn) return;
-
- pw = gnome_vfs_uri_get_password (uri);
-
- t = g_strdup (hn);
- p = strrchr(t,'@');
- if (p && p[1] != '\0')
- {
- gchar *hn2;
- gchar *pw2;
- *p = '\0';
- hn2 = g_strdup (p+1);
- pw2 = g_strdup_printf ("%s@%s", pw, t);
- gnome_vfs_uri_set_host_name (uri, hn2);
- gnome_vfs_uri_set_password (uri, pw2);
- g_free (hn2);
- g_free (pw2);
- }
- g_free (t);
-#endif
-}
-
-
GList *patlist_new (const gchar *pattern_string)
{
g_return_val_if_fail (pattern_string != NULL, NULL);
diff --git a/src/utils.h b/src/utils.h
index 44941f83..104b85e1 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -225,7 +225,6 @@ GList *gnome_cmd_file_list_to_gfile_list (GList *files);
int is_dir_existing(const gchar *dpath);
gboolean create_dir_if_needed (const gchar *dpath);
-void fix_uri (GnomeVFSURI *uri);
inline gboolean uri_is_valid (const gchar *uri)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]