summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-18 16:30:13 +0200
committerJasmine Hassan <[email protected]>2012-11-14 09:42:33 +0200
commitaefeca5ceaf9350c7e7f4a89637dc775d4207d76 (patch)
treeb9747ee974734323f5f88bdd5d02b653fed5a1fa
parent8a2b2890d08a7443f2272fdafce5f9c35c306add (diff)
downloadcaja-aefeca5ceaf9350c7e7f4a89637dc775d4207d76.tar.bz2
caja-aefeca5ceaf9350c7e7f4a89637dc775d4207d76.tar.xz
[eel] cleanup eel-vfs-extensions
http://git.gnome.org/browse/nautilus/commit/?id=2f202206fee4e1917494e3f4652e22648097c765
-rw-r--r--eel/eel-vfs-extensions.c28
-rw-r--r--eel/eel-vfs-extensions.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c
index 300b4969..9c786965 100644
--- a/eel/eel-vfs-extensions.c
+++ b/eel/eel-vfs-extensions.c
@@ -99,34 +99,6 @@ eel_make_valid_utf8 (const char *name)
return g_string_free (string, FALSE);
}
-/**
- * eel_format_uri_for_display:
- *
- * Filter, modify, unescape and change URIs to make them appropriate
- * to display to users. The conversion is done such that the roundtrip
- * to UTf8 is reversible.
- *
- * Rules:
- * file: URI's without fragments should appear as local paths
- * file: URI's with fragments should appear as file: URI's
- * All other URI's appear as expected
- *
- * @uri: a URI
- *
- * returns a g_malloc'd UTF8 string
- **/
-char *
-eel_format_uri_for_display (const char *uri)
-{
- GFile *file;
- char *res;
-
- file = g_file_new_for_uri (uri);
- res = g_file_get_parse_name (file);
- g_object_unref (file);
- return res;
-}
-
char *
eel_filename_strip_extension (const char * filename_with_extension)
{
diff --git a/eel/eel-vfs-extensions.h b/eel/eel-vfs-extensions.h
index a79df1c3..e564ca15 100644
--- a/eel/eel-vfs-extensions.h
+++ b/eel/eel-vfs-extensions.h
@@ -46,7 +46,6 @@ extern "C" {
gboolean eel_uri_is_search(const char* uri);
- char* eel_format_uri_for_display(const char* uri);
char* eel_make_valid_utf8(const char* name);
char* eel_filename_strip_extension(const char* filename);