aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-23 16:13:11 +0100
committerMax Kellermann <max@duempel.org>2010-12-23 16:23:04 +0100
commit0958ed584431ac09e676dd51925e56142416e7c2 (patch)
tree59f9b185d8381368f7bb8a9ae5beb595914c13dd /src/utils.c
parente3cba18532a24bf20a4174070159eef647057464 (diff)
downloadmpd-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.c13
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;
-}