util: remove unused debug_dump_enum_noprefix
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428>
This commit is contained in:
committed by
Marge Bot
parent
dc0de85fed
commit
0c0812cf6e
@@ -338,30 +338,6 @@ debug_dump_enum(const struct debug_named_value *names,
|
||||
}
|
||||
|
||||
|
||||
const char *
|
||||
debug_dump_enum_noprefix(const struct debug_named_value *names,
|
||||
const char *prefix,
|
||||
unsigned long value)
|
||||
{
|
||||
static char rest[64];
|
||||
|
||||
while (names->name) {
|
||||
if (names->value == value) {
|
||||
const char *name = names->name;
|
||||
while (*name == *prefix) {
|
||||
name++;
|
||||
prefix++;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
++names;
|
||||
}
|
||||
|
||||
snprintf(rest, sizeof(rest), "0x%08lx", value);
|
||||
return rest;
|
||||
}
|
||||
|
||||
|
||||
const char *
|
||||
debug_dump_flags(const struct debug_named_value *names, unsigned long value)
|
||||
{
|
||||
|
||||
@@ -321,12 +321,6 @@ const char *
|
||||
debug_dump_enum(const struct debug_named_value *names,
|
||||
unsigned long value);
|
||||
|
||||
const char *
|
||||
debug_dump_enum_noprefix(const struct debug_named_value *names,
|
||||
const char *prefix,
|
||||
unsigned long value);
|
||||
|
||||
|
||||
/**
|
||||
* Convert binary flags value to a string.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user