diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 23:38:08 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 23:38:08 +0100 |
commit | dd31499bf969baa68e66fca81b9f95447b6f3f2a (patch) | |
tree | fac0255aa3b4b3b696a2573a51e8469843db051d /utils/utils.c | |
parent | 7ba291037b1dbd0cd205ba07e6444293596a3761 (diff) | |
download | netsurf-dd31499bf969baa68e66fca81b9f95447b6f3f2a.tar.gz netsurf-dd31499bf969baa68e66fca81b9f95447b6f3f2a.tar.bz2 |
move remove underscores utility to alongside the single gtk call site
Diffstat (limited to 'utils/utils.c')
-rw-r--r-- | utils/utils.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/utils/utils.c b/utils/utils.c index 19d5bf0d6..cde3fa306 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -43,28 +43,6 @@ #include "utils/utils.h" /* exported interface documented in utils/utils.h */ -char *remove_underscores(const char *s, bool replacespace) -{ - size_t i, ii, len; - char *ret; - len = strlen(s); - ret = malloc(len + 1); - if (ret == NULL) { - return NULL; - } - for (i = 0, ii = 0; i < len; i++) { - if (s[i] != '_') { - ret[ii++] = s[i]; - } else if (replacespace) { - ret[ii++] = ' '; - } - } - ret[ii] = '\0'; - return ret; -} - - -/* exported interface documented in utils/utils.h */ char *squash_whitespace(const char *s) { char *c; |