From: Joel Brobecker Date: Thu, 1 Mar 2012 01:59:22 +0000 (+0000) Subject: remove dead code in varobj.c:c_value_of_variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8219b1e8f046438d8d32e280ce522950505b5e89;p=binutils-gdb.git remove dead code in varobj.c:c_value_of_variable gdb/ChangeLog: * varobj.c (c_value_of_variable): Remove dead code. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 621da5be476..cb9eecb94e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-02-29 Joel Brobecker + + * varobj.c (c_value_of_variable): Remove dead code. + 2012-02-29 Joel Brobecker * ada-lex.p (processId): Do not modify already encoded IDs. diff --git a/gdb/varobj.c b/gdb/varobj.c index 8855ce3e780..6186db03c8c 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -3288,11 +3288,6 @@ c_value_of_variable (struct varobj *var, enum varobj_display_formats format) catch that case explicitly. */ struct type *type = get_type (var); - /* If we have a custom formatter, return whatever string it has - produced. */ - if (var->pretty_printer && var->print_value) - return xstrdup (var->print_value); - /* Strip top-level references. */ while (TYPE_CODE (type) == TYPE_CODE_REF) type = check_typedef (TYPE_TARGET_TYPE (type));