From 81ba57f4631491eb89db4b3c23629adda6706eb6 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 11 Apr 2017 14:13:12 +0200 Subject: 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 --- src/gallium/drivers/trace/tr_dump.c | 52 ------------------------------------- 1 file changed, 52 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3