summaryrefslogtreecommitdiffstats
path: root/libopkg/str_util.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:27 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:27 (EST)
commit9ba412631e57deb365d5e7fb8b8c2fbf9bfe27b0 (patch)
tree3d6a8bc8a98b9e193b474cb6cb74e470e20e1dc4 /libopkg/str_util.c
parentdf364b323b478922b8aedab497ee6e6659dbc5f4 (diff)
file_util.c cleanups. Remove redundant str_chomp from str_util.c.
git-svn-id: http://opkg.googlecode.com/svn/trunk@382 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
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) {