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.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/glib-utils.c b/src/glib-utils.c
index 8f3722b..2f9c02e 100644
--- a/src/glib-utils.c
+++ b/src/glib-utils.c
@@ -85,19 +85,6 @@ str_substitute (const char *str,
return g_string_free (gstr, FALSE);
}
-int
-strcmp_null_tolerant (const char *s1, const char *s2)
-{
- if ((s1 == NULL) && (s2 == NULL))
- return 0;
- else if ((s1 != NULL) && (s2 == NULL))
- return 1;
- else if ((s1 == NULL) && (s2 != NULL))
- return -1;
- else
- return strcmp (s1, s2);
-}
-
/* counts how many characters to escape in @str. */
static int
count_chars_to_escape (const char *str,