diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:13 -0600 |
commit | 7a02bab704afdc2c46e056da166eaaa025ff4b03 (patch) | |
tree | 77c614e16fb84496aabf50aef85343dfb328d135 /gdb/tui/tui-io.h | |
parent | ea68593bd2c649a73754e150340ba3400c007682 (diff) | |
download | gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.zip gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.tar.gz gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.tar.bz2 |
Remove tui_expand_tabs
tui_expand_tabs only has a single caller. This patch removes this
function, in favor of a tab-expanding variant of string_file. This
simplifies the code somewhat.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
std::string.
* tui/tui-regs.c (class tab_expansion_file): New.
(tab_expansion_file::write): New method.
(tui_register_format): Change return type. Use
tab_expansion_file.
(tui_get_register, tui_data_window::display_registers_from)
(tui_data_item_window::rerender): Update.
* tui/tui-io.h (tui_expand_tabs): Don't declare.
* tui/tui-io.c (tui_expand_tabs): Remove.
Diffstat (limited to 'gdb/tui/tui-io.h')
-rw-r--r-- | gdb/tui/tui-io.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/tui/tui-io.h b/gdb/tui/tui-io.h index f28cf4e..2cc47ba 100644 --- a/gdb/tui/tui-io.h +++ b/gdb/tui/tui-io.h @@ -45,9 +45,6 @@ extern void tui_initialize_io (void); changed the edited text. */ extern void tui_redisplay_readline (void); -/* Expand TABs into spaces. */ -extern gdb::unique_xmalloc_ptr<char> tui_expand_tabs (const char *); - /* Enter/leave reverse video mode. */ extern void tui_set_reverse_mode (WINDOW *w, bool reverse); |