summaryrefslogtreecommitdiff
path: root/src/glib-utils.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-25 13:42:29 +0200
committerraveit65 <[email protected]>2022-01-02 16:32:27 +0100
commitdc75a0bfcb3ca24726ed5405308a6194bf01d633 (patch)
tree859a1c28f7609249b1d876f3b01d905e58aae7a6 /src/glib-utils.c
parent04c38d80626d706e1c40ea53befb5372c85f289c (diff)
downloadengrampa-dc75a0bfcb3ca24726ed5405308a6194bf01d633.tar.bz2
engrampa-dc75a0bfcb3ca24726ed5405308a6194bf01d633.tar.xz
glib-utils: drop strcmp_null_tolerant
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,