summaryrefslogtreecommitdiffstats
path: root/libopkg/str_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/str_util.c')
-rw-r--r--libopkg/str_util.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libopkg/str_util.c b/libopkg/str_util.c
index d583b7a..58fdb9c 100644
--- a/libopkg/str_util.c
+++ b/libopkg/str_util.c
@@ -37,15 +37,6 @@ int str_ends_with(const char *str, const char *suffix)
return (strcmp(str + str_len - suffix_len, suffix) == 0);
}
-int str_chomp(char *str)
-{
- if (str[strlen(str) - 1] == '\n') {
- str[strlen(str) - 1] = '\0';
- return 1;
- }
- return 0;
-}
-
int str_tolower(char *str)
{
while (*str) {