summaryrefslogtreecommitdiff
path: root/rpmio/rpmstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio/rpmstring.c')
-rw-r--r--rpmio/rpmstring.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/rpmio/rpmstring.c b/rpmio/rpmstring.c
index ac9b5cf34..08d44b46a 100644
--- a/rpmio/rpmstring.c
+++ b/rpmio/rpmstring.c
@@ -26,49 +26,6 @@ char * stripTrailingChar(char * s, char c)
return s;
}
-char ** splitString(const char * str, size_t length, char sep)
-{
- const char * source;
- char * s, * dest;
- char ** list;
- int i;
- int fields;
-
- s = xmalloc(length + 1);
-
- fields = 1;
- for (source = str, dest = s, i = 0; i < length; i++, source++, dest++) {
- *dest = *source;
- if (*dest == sep) fields++;
- }
-
- *dest = '\0';
-
- list = xmalloc(sizeof(*list) * (fields + 1));
-
- dest = s;
- list[0] = dest;
- i = 1;
- while (i < fields) {
- if (*dest == sep) {
- list[i++] = dest + 1;
- *dest = 0;
- }
- dest++;
- }
-
- list[i] = NULL;
-
-/* FIX: list[i] is NULL */
- return list;
-}
-
-void freeSplitString(char ** list)
-{
- list[0] = _free(list[0]);
- list = _free(list);
-}
-
StringBuf newStringBuf(void)
{
StringBuf sb = xmalloc(sizeof(*sb));