Remove make_delete_ui_cleanup
authorTom Tromey <tom@tromey.com>
Sat, 30 Sep 2017 04:35:58 +0000 (22:35 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 3 Oct 2017 11:33:47 +0000 (05:33 -0600)
commit895b8f306b1f54d85915ca0d24368f40b2e42554
tree4f7e798e0c0cd0bab6dbe2adb72bdd06d4efaa8f
parent0efef6405493c0bf438486819bec70b304276e16
Remove make_delete_ui_cleanup

This removes new_ui and delete_ui in favor of ordinary 'new' and
'delete', and then removes make_delete_ui_cleanup in favor of
std::unique_ptr.

2017-10-03  Tom Tromey  <tom@tromey.com>

* event-top.c (stdin_event_handler): Update.
* main.c (captured_main_1): Update.
* top.h (make_delete_ui_cleanup): Remove.
(struct ui): Add constructor and destructor.
(new_ui, delete_ui): Remove.
* top.c (make_delete_ui_cleanup): Remove.
(new_ui_command): Use std::unique_ptr.
(delete_ui_cleanup): Remove.
(ui::ui): Rename from new_ui.  Update.
(free_ui): Remove.
(ui::~ui): Rename from delete_ui.  Update.
gdb/ChangeLog
gdb/event-top.c
gdb/main.c
gdb/top.c
gdb/top.h