[gegl] bin: Remove unused function file_utils_get_ext_start()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] bin: Remove unused function file_utils_get_ext_start()
- Date: Fri, 23 Jul 2010 09:54:45 +0000 (UTC)
commit d94e47ab111d75a065438d1f2989a4dcf5e2ea49
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Jul 21 13:08:24 2010 +0200
bin: Remove unused function file_utils_get_ext_start()
bin/gegl.c | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/bin/gegl.c b/bin/gegl.c
index 59631e1..333a280 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -78,38 +78,6 @@ static gboolean file_is_gegl_xml (const gchar *path)
return FALSE;
}
-/**
- * file_utils_get_ext_start:
- * @uri:
- *
- * Returns the position of the extension (including .) for an URI. If
- * there is no extension the returned position is right after the
- * string, at the terminating NULL character.
- *
- * Returns:
- **/
-static const gchar *
-file_utils_get_ext_start (const gchar *uri)
-{
- const gchar *ext = NULL;
- int uri_len = strlen (uri);
- int search_len = 0;
-
- if (g_strrstr (uri, ".gz"))
- search_len = uri_len - 3;
- else if (g_strrstr (uri, ".bz2"))
- search_len = uri_len - 4;
- else
- search_len = uri_len;
-
- ext = g_strrstr_len (uri, search_len, ".");
-
- if (! ext)
- ext = uri + uri_len;
-
- return ext;
-}
-
gint
main (gint argc,
gchar **argv)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]