perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernel
[linux-2.6-microblaze.git] / tools / perf / util / string.c
index d28e723..99a555e 100644 (file)
@@ -318,20 +318,6 @@ char *strxfrchar(char *s, char from, char to)
        return s;
 }
 
-/**
- * ltrim - Removes leading whitespace from @s.
- * @s: The string to be stripped.
- *
- * Return pointer to the first non-whitespace character in @s.
- */
-char *ltrim(char *s)
-{
-       while (isspace(*s))
-               s++;
-
-       return s;
-}
-
 /**
  * rtrim - Removes trailing whitespace from @s.
  * @s: The string to be stripped.