[Piglit] [PATCH 8/8] shader_runner: Remove unused parser utils.
Francisco Jerez
currojerez at riseup.net
Tue Oct 18 23:17:46 UTC 2016
---
tests/shaders/parser_utils.c | 48 +-------------------------------------------
tests/shaders/parser_utils.h | 7 +------
2 files changed, 2 insertions(+), 53 deletions(-)
diff --git a/tests/shaders/parser_utils.c b/tests/shaders/parser_utils.c
index ba59671..3b1400c 100644
--- a/tests/shaders/parser_utils.c
+++ b/tests/shaders/parser_utils.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2010-2016 Intel Corporation
+ * Copyright © 2016 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -263,49 +263,3 @@ parse_comparison_op(const char *s, enum comparison *t, const char **rest)
return false;
}
}
-
-/**
- * Skip over whitespace upto the end of line
- */
-const char *
-eat_whitespace(const char *src)
-{
- while (isspace((int) *src) && (*src != '\n'))
- src++;
-
- return src;
-}
-
-
-/**
- * Skip over non-whitespace upto the end of line
- */
-const char *
-eat_text(const char *src)
-{
- while (!isspace((int) *src) && (*src != '\0'))
- src++;
-
- return src;
-}
-
-
-bool
-string_match(const char *string, const char *line)
-{
- return (strncmp(string, line, strlen(string)) == 0);
-}
-
-
-/**
- * Copy a string until either whitespace or the end of the string
- */
-const char *
-strcpy_to_space(char *dst, const char *src)
-{
- while (!isspace((int) *src) && (*src != '\0'))
- *(dst++) = *(src++);
-
- *dst = '\0';
- return src;
-}
diff --git a/tests/shaders/parser_utils.h b/tests/shaders/parser_utils.h
index 28e0630..0768b27 100644
--- a/tests/shaders/parser_utils.h
+++ b/tests/shaders/parser_utils.h
@@ -1,5 +1,5 @@
/*
- * Copyright © 2010-2016 Intel Corporation
+ * Copyright © 2016 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -190,11 +190,6 @@ parse_enum_tab(const struct string_to_enum *tab,
bool
parse_tex_target(const char *s, GLenum *t, const char **rest);
-const char *eat_whitespace(const char *src);
-const char *eat_text(const char *src);
-bool string_match(const char *string, const char *line);
-const char *strcpy_to_space(char *dst, const char *src);
-
enum comparison {
equal = 0,
not_equal,
--
2.9.0
More information about the Piglit
mailing list