From: Samuel Pitoiset Date: Tue, 11 Apr 2017 12:13:12 +0000 (+0200) Subject: trace: remove some unused trace_dump_tag*() functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81ba57f4631491eb89db4b3c23629adda6706eb6;p=mesa.git trace: remove some unused trace_dump_tag*() functions 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 Reviewed-by: Brian Paul --- diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c index 9d03b16a34a..78c72492dca 100644 --- a/src/gallium/drivers/trace/tr_dump.c +++ b/src/gallium/drivers/trace/tr_dump.c @@ -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) {