aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 14:06:18 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:31 -0600
commit63901aeccf923abaca02c8a58b1141d3859d7247 (patch)
treed30e96c739cfbf257d03ffa455b1367ac022265c /gdb/tui/tui-data.c
parentceb13a13822b28d8e1cdc2e02975bb6569d3d8e6 (diff)
downloadgdb-63901aeccf923abaca02c8a58b1141d3859d7247.zip
gdb-63901aeccf923abaca02c8a58b1141d3859d7247.tar.gz
gdb-63901aeccf923abaca02c8a58b1141d3859d7247.tar.bz2
Inline constructors and initializers
This inlines the constructors and initializers for tui_cmd_window and tui_data_window. This makes the code a bit simpler. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window): Inline constructor. Add initializers for members. * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove constructors; now inline in class.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r--gdb/tui/tui-data.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 5cdbc68..4ec3df4 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -495,23 +495,6 @@ tui_source_window_base::tui_source_window_base (enum tui_win_type type)
start_line_or_addr.u.addr = 0;
}
-tui_data_window::tui_data_window ()
- : tui_win_info (DATA_WIN)
-{
- data_content = NULL;
- data_content_count = 0;
- regs_content = NULL;
- regs_content_count = 0;
- regs_column_count = 1;
- display_regs = false;
- current_group = 0;
-}
-
-tui_cmd_window::tui_cmd_window ()
- : tui_win_info (CMD_WIN)
-{
-}
-
struct tui_win_info *
tui_alloc_win_info (enum tui_win_type type)
{