diff options
author | Tom Tromey <tom@tromey.com> | 2019-09-02 09:07:02 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-09-20 13:49:11 -0600 |
commit | 43df9b2fccc347e95f882519332592a826d72d11 (patch) | |
tree | cecd27b605582ced1596e7bcc73544580aab9484 /gdb/tui/tui.c | |
parent | 7226433c44e3792aeea6ad19c54cd3056ea4308e (diff) | |
download | gdb-43df9b2fccc347e95f882519332592a826d72d11.zip gdb-43df9b2fccc347e95f882519332592a826d72d11.tar.gz gdb-43df9b2fccc347e95f882519332592a826d72d11.tar.bz2 |
Remove strcat_to_buf
An earlier patch in the series removed the last call to strcat_to_buf,
so this patch removes the function entirely.
gdb/ChangeLog
2019-09-20 Tom Tromey <tom@tromey.com>
* tui/tui.h (strcat_to_buf): Don't declare.
* tui/tui.c (strcat_to_buf): Remove.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r-- | gdb/tui/tui.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 966304f..30bf548 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -570,19 +570,6 @@ tui_disable_command (const char *args, int from_tty) tui_disable (); } -void -strcat_to_buf (char *buf, int buflen, - const char *item_to_add) -{ - if (item_to_add != NULL && buf != NULL) - { - if ((strlen (buf) + strlen (item_to_add)) <= buflen) - strcat (buf, item_to_add); - else - strncat (buf, item_to_add, (buflen - strlen (buf))); - } -} - #if 0 /* Solaris <sys/termios.h> defines CTRL. */ #ifndef CTRL |