aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/string.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-30 23:30:41 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-30 23:30:41 +0100
commit622e82cde16725c7d81bdc1dde3693dfbc613b5b (patch)
tree68710a7282502614c437667d479acefba15a21c0 /xen/common/string.c
parent2c3e9e2eeaa01c4cece290c18fb8d9a18cda36b3 (diff)
downloadxen-622e82cde16725c7d81bdc1dde3693dfbc613b5b.tar.gz
xen-622e82cde16725c7d81bdc1dde3693dfbc613b5b.tar.bz2
xen-622e82cde16725c7d81bdc1dde3693dfbc613b5b.zip
Remove stupid unused strtok() function.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/string.c')
-rw-r--r--xen/common/string.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/xen/common/string.c b/xen/common/string.c
index 7c6e74df7e..df8874c298 100644
--- a/xen/common/string.c
+++ b/xen/common/string.c
@@ -4,17 +4,6 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
-/*
- * stupid library routines.. The optimized versions should generally be found
- * as inline code in <asm-xx/string.h>
- *
- * These are buggy as well..
- *
- * * Fri Jun 25 1999, Ingo Oeser <ioe@informatik.tu-chemnitz.de>
- * - Added strsep() which will replace strtok() soon (because strsep() is
- * reentrant and should be faster). Use only strsep() in new code, please.
- */
-
#include <xen/types.h>
#include <xen/string.h>
#include <xen/ctype.h>
@@ -52,8 +41,6 @@ int strnicmp(const char *s1, const char *s2, size_t len)
}
#endif
-char * ___strtok;
-
#ifndef __HAVE_ARCH_STRCPY
/**
* strcpy - Copy a %NUL terminated string
@@ -316,35 +303,6 @@ char * strpbrk(const char * cs,const char * ct)
}
#endif
-#ifndef __HAVE_ARCH_STRTOK
-/**
- * strtok - Split a string into tokens
- * @s: The string to be searched
- * @ct: The characters to search for
- *
- * WARNING: strtok is deprecated, use strsep instead.
- */
-char * strtok(char * s,const char * ct)
-{
- char *sbegin, *send;
-
- sbegin = s ? s : ___strtok;
- if (!sbegin) {
- return NULL;
- }
- sbegin += strspn(sbegin,ct);
- if (*sbegin == '\0') {
- ___strtok = NULL;
- return( NULL );
- }
- send = strpbrk( sbegin, ct);
- if (send && *send != '\0')
- *send++ = '\0';
- ___strtok = send;
- return (sbegin);
-}
-#endif
-
#ifndef __HAVE_ARCH_STRSEP
/**
* strsep - Split a string into tokens