remove dead code in varobj.c:c_value_of_variable
authorJoel Brobecker <brobecker@gnat.com>
Thu, 1 Mar 2012 01:59:22 +0000 (01:59 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 1 Mar 2012 01:59:22 +0000 (01:59 +0000)
gdb/ChangeLog:

        * varobj.c (c_value_of_variable): Remove dead code.

gdb/ChangeLog
gdb/varobj.c

index 621da5b..cb9eecb 100644 (file)
@@ -1,5 +1,9 @@
 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
 
+       * varobj.c (c_value_of_variable): Remove dead code.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
        * ada-lex.p (processId): Do not modify already encoded IDs.
        Update function documentation.
 
index 8855ce3..6186db0 100644 (file)
@@ -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));