diff options
author | Max Kellermann <max@duempel.org> | 2010-12-23 16:13:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:23:04 +0100 |
commit | 0958ed584431ac09e676dd51925e56142416e7c2 (patch) | |
tree | 59f9b185d8381368f7bb8a9ae5beb595914c13dd /src/utils.c | |
parent | e3cba18532a24bf20a4174070159eef647057464 (diff) | |
download | mpd-0958ed584431ac09e676dd51925e56142416e7c2.tar.gz mpd-0958ed584431ac09e676dd51925e56142416e7c2.tar.xz mpd-0958ed584431ac09e676dd51925e56142416e7c2.zip |
utils: move string_array_contains() to string_util.c
Diffstat (limited to '')
-rw-r--r-- | src/utils.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/utils.c b/src/utils.c index 53494cc5d..39f4fe4d1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -101,16 +101,3 @@ char *parsePath(char *path) } #endif } - -bool -string_array_contains(const char *const* haystack, const char *needle) -{ - assert(haystack != NULL); - assert(needle != NULL); - - for (; *haystack != NULL; ++haystack) - if (g_ascii_strcasecmp(*haystack, needle) == 0) - return true; - - return false; -} |