Author: blueswirl Date: Thu Apr 15 18:42:51 2010 New Revision: 743 URL: http://tracker.coreboot.org/trac/openbios/changeset/743
Log: Remove unused strspn()
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/include/libc/string.h trunk/openbios-devel/libc/string.c
Modified: trunk/openbios-devel/include/libc/string.h ============================================================================== --- trunk/openbios-devel/include/libc/string.h Thu Apr 15 18:42:49 2010 (r742) +++ trunk/openbios-devel/include/libc/string.h Thu Apr 15 18:42:51 2010 (r743) @@ -37,7 +37,6 @@ extern char *strrchr(const char * s, int c); extern size_t strlen(const char * s); extern size_t strnlen(const char * s, size_t count); -extern size_t strspn(const char *s, const char *accept); extern char *strpbrk(const char * cs,const char * ct); extern char *strsep(char **s, const char *ct); extern void *memset(void * s,int c,size_t count);
Modified: trunk/openbios-devel/libc/string.c ============================================================================== --- trunk/openbios-devel/libc/string.c Thu Apr 15 18:42:49 2010 (r742) +++ trunk/openbios-devel/libc/string.c Thu Apr 15 18:42:51 2010 (r743) @@ -221,31 +221,6 @@ }
/** - * strspn - Calculate the length of the initial substring of @s which only - * contain letters in @accept - * @s: The string to be searched - * @accept: The string to search for - */ -size_t strspn(const char *s, const char *accept) -{ - const char *p; - const char *a; - size_t count = 0; - - for (p = s; *p != '\0'; ++p) { - for (a = accept; *a != '\0'; ++a) { - if (*p == *a) - break; - } - if (*a == '\0') - return count; - ++count; - } - - return count; -} - -/** * strpbrk - Find the first occurrence of a set of characters * @cs: The string to be searched * @ct: The characters to search for