[Mesa-dev] [PATCH 07/15] trace: remove some unused trace_dump_tag*() functions
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Apr 11 17:58:38 UTC 2017
Fixes the following Clang warnings.
tr_dump.c:137:1: warning: unused function 'trace_dump_tag' [-Wunused-function]
trace_dump_tag(const char *name)
^
tr_dump.c:168:1: warning: unused function 'trace_dump_tag_begin2' [-Wunused-function]
trace_dump_tag_begin2(const char *name,
^
tr_dump.c:187:1: warning: unused function 'trace_dump_tag_begin3' [-Wunused-function]
trace_dump_tag_begin3(const char *name,
^
CC tr_texture.lo
3 warnings generated.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/gallium/drivers/trace/tr_dump.c | 52 -------------------------------------
1 file changed, 52 deletions(-)
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index 9d03b16a34..78c72492dc 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -134,15 +134,6 @@ trace_dump_newline(void)
static inline void
-trace_dump_tag(const char *name)
-{
- trace_dump_writes("<");
- trace_dump_writes(name);
- trace_dump_writes("/>");
-}
-
-
-static inline void
trace_dump_tag_begin(const char *name)
{
trace_dump_writes("<");
@@ -165,49 +156,6 @@ trace_dump_tag_begin1(const char *name,
static inline void
-trace_dump_tag_begin2(const char *name,
- const char *attr1, const char *value1,
- const char *attr2, const char *value2)
-{
- trace_dump_writes("<");
- trace_dump_writes(name);
- trace_dump_writes(" ");
- trace_dump_writes(attr1);
- trace_dump_writes("=\'");
- trace_dump_escape(value1);
- trace_dump_writes("\' ");
- trace_dump_writes(attr2);
- trace_dump_writes("=\'");
- trace_dump_escape(value2);
- trace_dump_writes("\'>");
-}
-
-
-static inline void
-trace_dump_tag_begin3(const char *name,
- const char *attr1, const char *value1,
- const char *attr2, const char *value2,
- const char *attr3, const char *value3)
-{
- trace_dump_writes("<");
- trace_dump_writes(name);
- trace_dump_writes(" ");
- trace_dump_writes(attr1);
- trace_dump_writes("=\'");
- trace_dump_escape(value1);
- trace_dump_writes("\' ");
- trace_dump_writes(attr2);
- trace_dump_writes("=\'");
- trace_dump_escape(value2);
- trace_dump_writes("\' ");
- trace_dump_writes(attr3);
- trace_dump_writes("=\'");
- trace_dump_escape(value3);
- trace_dump_writes("\'>");
-}
-
-
-static inline void
trace_dump_tag_end(const char *name)
{
trace_dump_writes("</");
--
2.12.2
More information about the mesa-dev
mailing list