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.
+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)
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
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);