Mercurial > mplayer.hg
diff gui/util/string.c @ 34685:311b47301ea7
Remove gstrcasecmp().
This function isn't necessary. strcasecmp() can be used just as well,
because both arguments to the gstrcasecmp() calls have been checked
to be not NULL prior to the call.
author | ib |
---|---|
date | Fri, 24 Feb 2012 17:26:35 +0000 |
parents | 531c69f090da |
children | 1edb306bc754 |
line wrap: on
line diff
--- a/gui/util/string.c Fri Feb 24 17:16:54 2012 +0000 +++ b/gui/util/string.c Fri Feb 24 17:26:35 2012 +0000 @@ -163,16 +163,6 @@ return strcmp(a, b); } -int gstrcasecmp(const char *a, const char *b) -{ - if (!a && !b) - return 0; - if (!a || !b) - return -1; - - return strcasecmp(a, b); -} - /** * @brief A strncmp() that can handle NULL pointers. *