summaryrefslogtreecommitdiff
path: root/src/glib-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glib-utils.c')
-rw-r--r--src/glib-utils.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/glib-utils.c b/src/glib-utils.c
index f17ddb2..e120f88 100644
--- a/src/glib-utils.c
+++ b/src/glib-utils.c
@@ -29,13 +29,10 @@
#include <glib-object.h>
#include "glib-utils.h"
-
#define MAX_PATTERNS 128
-
/* gobject utils*/
-
void
_g_object_unref (gpointer object)
{
@@ -43,7 +40,6 @@ _g_object_unref (gpointer object)
g_object_unref (object);
}
-
/* string utils */
gboolean
@@ -57,7 +53,6 @@ strchrs (const char *str,
return FALSE;
}
-
char *
str_substitute (const char *str,
const char *from_str,
@@ -90,7 +85,6 @@ str_substitute (const char *str,
return g_string_free (gstr, FALSE);
}
-
int
strcmp_null_tolerant (const char *s1, const char *s2)
{
@@ -104,7 +98,6 @@ strcmp_null_tolerant (const char *s1, const char *s2)
return strcmp (s1, s2);
}
-
/* counts how many characters to escape in @str. */
static int
count_chars_to_escape (const char *str,
@@ -125,7 +118,6 @@ count_chars_to_escape (const char *str,
return n;
}
-
char*
escape_str_common (const char *str,
const char *meta_chars,
@@ -166,7 +158,6 @@ escape_str_common (const char *str,
return escaped;
}
-
/* escape with backslash the string @str. */
char*
escape_str (const char *str,
@@ -175,7 +166,6 @@ escape_str (const char *str,
return escape_str_common (str, meta_chars, '\\', 0);
}
-
static const char *
g_utf8_strstr (const char *haystack, const char *needle)
{
@@ -195,7 +185,6 @@ g_utf8_strstr (const char *haystack, const char *needle)
return NULL;
}
-
static char**
g_utf8_strsplit (const char *string,
const char *delimiter,
@@ -249,7 +238,6 @@ g_utf8_strsplit (const char *string,
return str_array;
}
-
static char*
g_utf8_strchug (char *string)
{
@@ -270,7 +258,6 @@ g_utf8_strchug (char *string)
return string;
}
-
static char*
g_utf8_strchomp (char *string)
{
@@ -298,10 +285,8 @@ g_utf8_strchomp (char *string)
return string;
}
-
#define g_utf8_strstrip(string) g_utf8_strchomp (g_utf8_strchug (string))
-
gboolean
match_regexps (GRegex **regexps,
const char *string,
@@ -326,7 +311,6 @@ match_regexps (GRegex **regexps,
return matched;
}
-
void
free_regexps (GRegex **regexps)
{
@@ -340,7 +324,6 @@ free_regexps (GRegex **regexps)
g_free (regexps);
}
-
char **
search_util_get_patterns (const char *pattern_string)
{
@@ -365,7 +348,6 @@ search_util_get_patterns (const char *pattern_string)
return patterns;
}
-
GRegex **
search_util_get_regexps (const char *pattern_string,
GRegexCompileFlags compile_options)
@@ -389,7 +371,6 @@ search_util_get_regexps (const char *pattern_string,
return regexps;
}
-
const char *
eat_spaces (const char *line)
{
@@ -400,7 +381,6 @@ eat_spaces (const char *line)
return line;
}
-
char **
split_line (const char *line,
int n_fields)
@@ -428,7 +408,6 @@ split_line (const char *line,
return fields;
}
-
const char *
get_last_field (const char *line,
int last_field)
@@ -451,7 +430,6 @@ get_last_field (const char *line,
return field;
}
-
void
debug (const char *file,
int line,
@@ -475,10 +453,8 @@ debug (const char *file,
#endif
}
-
GHashTable *static_strings = NULL;
-
const char *
get_static_string (const char *s)
{
@@ -500,7 +476,6 @@ get_static_string (const char *s)
return result;
}
-
char*
g_uri_display_basename (const char *uri)
{
@@ -513,7 +488,6 @@ g_uri_display_basename (const char *uri)
return name;
}
-
const gchar *
_g_path_get_file_name (const gchar *file_name)
{
@@ -538,7 +512,6 @@ _g_path_get_file_name (const gchar *file_name)
return base + 1;
}
-
const char *
_g_path_get_base_name (const char *path,
const char *base_dir,