From: Tom Tromey Date: Thu, 31 Aug 2023 18:12:12 +0000 (-0600) Subject: Remove variable_default_display X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78dfcce3174dbb9bd9d3a5898e57a9019dcc38d9;p=binutils-gdb.git Remove variable_default_display variable_default_display has a single caller now, so remove it. Reviewed-by: Keith Seitz --- diff --git a/gdb/varobj.c b/gdb/varobj.c index 760809c6f51..3ae8d728e82 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -164,8 +164,6 @@ create_child_with_value (struct varobj *parent, int index, /* Utility routines */ -static enum varobj_display_formats variable_default_display (struct varobj *); - static bool update_type_if_necessary (struct varobj *var, struct value *new_value); @@ -336,7 +334,7 @@ varobj_create (const char *objname, return NULL; } - var->format = variable_default_display (var.get ()); + var->format = FORMAT_NATURAL; var->root->valid_block = var->root->floating ? NULL : tracker.block (); var->root->global @@ -1871,14 +1869,6 @@ varobj_get_value_type (const struct varobj *var) return type; } -/* What is the default display for this variable? We assume that - everything is "natural". Any exceptions? */ -static enum varobj_display_formats -variable_default_display (struct varobj *var) -{ - return FORMAT_NATURAL; -} - /* * Language-dependencies */