Remove free_all_values
authorTom Tromey <tom@tromey.com>
Wed, 4 Apr 2018 00:31:01 +0000 (18:31 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 Apr 2018 21:44:49 +0000 (15:44 -0600)
free_all_values is unused, so this removes it.

gdb/ChangeLog
2018-04-06  Tom Tromey  <tom@tromey.com>

* value.h (free_all_values): Remove.
* value.c (free_all_values): Remove.

gdb/ChangeLog
gdb/value.c
gdb/value.h

index 67d87af13301bee5b4a54c2b72b487f38e1566af..1b553d6153a8b3198e6981d351a9bb590c65014d 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-06  Tom Tromey  <tom@tromey.com>
+
+       * value.h (free_all_values): Remove.
+       * value.c (free_all_values): Remove.
+
 2018-04-06  Tom Tromey  <tom@tromey.com>
 
        * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
index 677ec42e636e5b71de1e5a966deeac42a127cfed..a84c196aaaae4e9b6bb7545355490c5e7f19fd08 100644 (file)
@@ -1638,26 +1638,6 @@ value_free_to_mark (const struct value *mark)
   all_values = val;
 }
 
-/* Free all the values that have been allocated (except for those released).
-   Call after each command, successful or not.
-   In practice this is called before each command, which is sufficient.  */
-
-void
-free_all_values (void)
-{
-  struct value *val;
-  struct value *next;
-
-  for (val = all_values; val; val = next)
-    {
-      next = val->next;
-      val->released = 1;
-      value_decref (val);
-    }
-
-  all_values = 0;
-}
-
 /* Frees all the elements in a chain of values.  */
 
 void
index f7e7387ff1c4992bf3efeda3281def25afdf5c30..20169374062b872a5b87dfc5d5853e32c1e07f76 100644 (file)
@@ -1053,8 +1053,6 @@ extern int unop_user_defined_p (enum exp_opcode op, struct value *arg1);
 
 extern int destructor_name_p (const char *name, struct type *type);
 
-extern void free_all_values (void);
-
 extern void free_value_chain (struct value *v);
 
 extern value_ref_ptr release_value (struct value *val);
This page took 0.028587 seconds and 4 git commands to generate.