trace: remove some unused trace_dump_tag*() functions
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Apr 2017 12:13:12 +0000 (14:13 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 08:06:04 +0000 (10:06 +0200)
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@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/trace/tr_dump.c

index 9d03b16a34af4dc92abc0357841719c57e908a3b..78c72492dca38ccc63a273170f8c2b80d9e101ea 100644 (file)
@@ -133,15 +133,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)
 {
@@ -164,49 +155,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)
 {