[gnome-commander] Remove unused function



commit 8cceb41a72d5fd94d884be4c95346d4f26ada7d3
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Feb 20 22:05:18 2019 +0100

    Remove unused function

 src/utils.cc | 14 --------------
 src/utils.h  |  1 -
 2 files changed, 15 deletions(-)
---
diff --git a/src/utils.cc b/src/utils.cc
index d96bf119..900d457a 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -882,20 +882,6 @@ gchar *unix_to_unc (const gchar *path)
 }
 
 
-gchar *unc_to_unix (const gchar *path)
-{
-    g_return_val_if_fail (path != NULL, NULL);
-    g_return_val_if_fail (path[0] == '\\', NULL);
-    g_return_val_if_fail (path[1] == '\\', NULL);
-
-    gchar *out = (gchar *) g_malloc(strlen(path));
-    strcpy (out, path+1);
-    transform (out, '\\', '/');
-
-    return out;
-}
-
-
 GdkColor *gdk_color_new (gushort r, gushort g, gushort b)
 {
     GdkColor *c = g_new0 (GdkColor, 1);
diff --git a/src/utils.h b/src/utils.h
index dda8c93d..6819c788 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -212,7 +212,6 @@ GtkWidget *create_ui_pixmap (GtkWidget *window,
                              GtkIconSize size);
 
 gchar *unix_to_unc (const gchar *path);
-gchar *unc_to_unix (const gchar *path);
 GdkColor *gdk_color_new (gushort r, gushort g, gushort b);
 GList *file_list_to_uri_list (GList *files);
 GList *file_list_to_info_list (GList *files);


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