aboutsummaryrefslogtreecommitdiff
path: root/src/ini.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-03-18 22:13:13 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-03-22 22:20:26 -0400
commit25e98c6d2bcf1a17484a2953329ffcfffbb169b2 (patch)
treecc9fc33d63f14bea94f442cdcf3c2479b7990988 /src/ini.c
parent8ef322421ae938103881c5f90d81265ca0bc39c2 (diff)
downloadstasis-25e98c6d2bcf1a17484a2953329ffcfffbb169b2.tar.gz
Move collapse_whitespace to utils.c / utils.h
Diffstat (limited to 'src/ini.c')
-rw-r--r--src/ini.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/ini.c b/src/ini.c
index 6716a07..ada0701 100644
--- a/src/ini.c
+++ b/src/ini.c
@@ -229,17 +229,6 @@ char *unquote(char *s) {
return s;
}
-char *collapse_whitespace(char **s) {
- size_t len = strlen(*s);
- size_t i;
- for (i = 0; isblank((int)*s[i]); i++);
- memmove(*s, *s + i, strlen(*s));
- if (i) {
- *s[len - i] = '\0';
- }
- return *s;
-}
-
void ini_free(struct INIFILE **ini) {
for (size_t section = 0; section < (*ini)->section_count; section++) {
for (size_t data = 0; data < (*ini)->section[section]->data_count; data++) {