The do_nothing function in mi-main.c is used as a splay tree
key-deleting function; but NULL serves the same purpose and is used
elsewhere in gdb. This patch removes the unneeded function.
ChangeLog
2017-10-09 Tom Tromey <tom@tromey.com>
* mi/mi-main.c (do_nothing): Remove.
(list_available_thread_groups): Update.
+2017-10-09 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (do_nothing): Remove.
+ (list_available_thread_groups): Update.
+
2017-10-09 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
uiout->field_string (NULL, p);
}
-static void
-do_nothing (splay_tree_key k)
-{
-}
-
static void
free_vector_of_osdata_items (splay_tree_value xvalue)
{
make_cleanup_osdata_free (threads);
tree = splay_tree_new (splay_tree_int_comparator,
- do_nothing,
+ NULL,
free_vector_of_osdata_items);
make_cleanup (free_splay_tree, tree);