staging/lustre/libcfs: removed dead code from libcfs_string
authorDragos Foianu <dragos.foianu@gmail.com>
Wed, 17 Jul 2013 11:05:24 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 19:29:53 +0000 (12:29 -0700)
Confirmed by cscope that the functions are not used anymore. A fresh compilation does not yield any errors.

Signed-off-by: Dragos Foianu <dragos.foianu@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/libcfs_string.c

index 9edccc99683eafd300aeaebfb6fca28d2d1e68f6..c7a19711bb6afa86554bb0fdaf98d70a1bb1eefe 100644 (file)
@@ -132,54 +132,6 @@ int cfs_str2mask(const char *str, const char *(*bit2str)(int bit),
 }
 EXPORT_SYMBOL(cfs_str2mask);
 
-/* Duplicate a string in a platform-independent way */
-char *cfs_strdup(const char *str, u_int32_t flags)
-{
-       size_t lenz; /* length of str + zero byte */
-       char *dup_str;
-
-       lenz = strlen(str) + 1;
-
-       dup_str = kmalloc(lenz, flags);
-       if (dup_str == NULL)
-               return NULL;
-
-       memcpy(dup_str, str, lenz);
-
-       return dup_str;
-}
-EXPORT_SYMBOL(cfs_strdup);
-
-/**
- * cfs_{v}snprintf() return the actual size that is printed rather than
- * the size that would be printed in standard functions.
- */
-/* safe vsnprintf */
-int cfs_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
-{
-       int i;
-
-       LASSERT(size > 0);
-       i = vsnprintf(buf, size, fmt, args);
-
-       return  (i >= size ? size - 1 : i);
-}
-EXPORT_SYMBOL(cfs_vsnprintf);
-
-/* safe snprintf */
-int cfs_snprintf(char *buf, size_t size, const char *fmt, ...)
-{
-       va_list args;
-       int i;
-
-       va_start(args, fmt);
-       i = cfs_vsnprintf(buf, size, fmt, args);
-       va_end(args);
-
-       return  i;
-}
-EXPORT_SYMBOL(cfs_snprintf);
-
 /* get the first string out of @str */
 char *cfs_firststr(char *str, size_t size)
 {
This page took 0.025748 seconds and 5 git commands to generate.