From 9ba412631e57deb365d5e7fb8b8c2fbf9bfe27b0 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Wed, 25 Nov 2009 20:42:27 -0500 Subject: 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 --- (limited to 'libopkg/str_util.c') 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) { -- cgit v0.9.1