From dc0de85fed597241435ebf83d25739b1ad68eaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Monteiro?= Date: Wed, 2 Nov 2022 00:05:00 +0000 Subject: [PATCH] util: remove unused debug_print_blob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: António Monteiro Reviewed-by: Marek Olšák Part-of: --- src/util/u_debug.c | 18 ------------------ src/util/u_debug.h | 12 ------------ 2 files changed, 30 deletions(-) diff --git a/src/util/u_debug.c b/src/util/u_debug.c index d34b804be0d..eeda1011f44 100644 --- a/src/util/u_debug.c +++ b/src/util/u_debug.c @@ -100,24 +100,6 @@ debug_disable_win32_error_dialogs(void) } #endif /* _WIN32 */ - -#ifdef DEBUG -void -debug_print_blob(const char *name, const void *blob, unsigned size) -{ - const unsigned *ublob = (const unsigned *)blob; - unsigned i; - - debug_printf("%s (%d dwords%s)\n", name, size/4, - size%4 ? "... plus a few bytes" : ""); - - for (i = 0; i < size/4; i++) { - debug_printf("%d:\t%08x\n", i, ublob[i]); - } -} -#endif - - static bool debug_get_option_should_print(void) { diff --git a/src/util/u_debug.h b/src/util/u_debug.h index 805d7977686..449e7bf5993 100644 --- a/src/util/u_debug.h +++ b/src/util/u_debug.h @@ -165,18 +165,6 @@ debug_printf(const char *format, ...) #define debug_vprintf(_format, _ap) ((void)0) #endif - -#ifdef DEBUG -/** - * Dump a blob in hex to the same place that debug_printf sends its - * messages. - */ -void debug_print_blob( const char *name, const void *blob, unsigned size ); -#else -#define debug_print_blob(_name, _blob, _size) ((void)0) -#endif - - #ifdef _WIN32 /** * Disable Win32 interactive error message boxes.