perf tools: Move ltrim() to util/string.c
[platform/adaptation/renesas_rcar/renesas_kernel.git] / tools / perf / builtin-script.c
index 3314ef2..fee4c9a 100644 (file)
@@ -909,18 +909,6 @@ static const char *ends_with(const char *str, const char *suffix)
        return NULL;
 }
 
-static char *ltrim(char *str)
-{
-       int len = strlen(str);
-
-       while (len && isspace(*str)) {
-               len--;
-               str++;
-       }
-
-       return str;
-}
-
 static int read_script_info(struct script_desc *desc, const char *filename)
 {
        char line[BUFSIZ], *p;