]> git.street.me.uk Git - andy/viking.git/blobdiff - src/util.c
Make each tool contain it's own icon definition.
[andy/viking.git] / src / util.c
index 1cfdb93939b6cd5ef857ca60baf023a5c6d713a3..2b129dc4199fb36a150befc97505a670ca15d63b 100644 (file)
@@ -2,12 +2,11 @@
  *    Viking - GPS data editor
  *    Copyright (C) 2007, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
  *    Copyright (C) 2014, Rob Norris <rw_norris@hotmail.com>
- *    Based on:
- *    Copyright (C) 2003-2007, Leandro A. F. Pereira <leandro@linuxmag.com.br>
  *
  *    This program is free software; you can redistribute it and/or modify
  *    it under the terms of the GNU General Public License as published by
- *    the Free Software Foundation, version 2.
+ *    the Free Software Foundation; either version 2 of the License, or
+ *    (at your option) any later version.
  *
  *    This program is distributed in the hope that it will be useful,
  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -62,37 +61,6 @@ guint util_get_number_of_cpus ()
 #endif
 }
 
-gchar *uri_escape(gchar *str)
-{
-  gchar *esc_str = g_malloc(3*strlen(str));
-  gchar *dst = esc_str;
-  gchar *src;
-
-  for (src = str; *src; src++) {
-    if (*src == ' ')
-     *dst++ = '+';
-    else if (g_ascii_isalnum(*src))
-      *dst++ = *src;
-    else {
-      int x = g_snprintf(dst, 3, "%%%02hX", *src);
-      dst += x;
-    }
-  }
-  *dst = '\0';
-
-  return(esc_str);
-}
-
-
-GList * str_array_to_glist(gchar* data[])
-{
-  GList *gl = NULL;
-  gpointer * p;
-  for (p = (gpointer)data; *p; p++)
-    gl = g_list_prepend(gl, *p);
-  return g_list_reverse(gl);
-}
-
 /**
  * split_string_from_file_on_equals:
  *