diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-11 14:57:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-20 09:49:41 -0700 |
commit | 6bebf813ac2d4b92facae7b18161aad1b734a894 (patch) | |
tree | aaa28c29f4665e5db0bf87e0167f88122e55b433 /gdb/utils.h | |
parent | b0715493df19e5223251c5be0efc7f180aa0a5ff (diff) | |
download | binutils-6bebf813ac2d4b92facae7b18161aad1b734a894.zip binutils-6bebf813ac2d4b92facae7b18161aad1b734a894.tar.gz binutils-6bebf813ac2d4b92facae7b18161aad1b734a894.tar.bz2 |
Remove print_spaces
This removes the print_spaces helper function, in favor of using the
"*%s" idiom that's already used in many places in gdb. One spot (in
symmisc.c) is changed to use print_spaces_filtered, because the rest
of that function is using filtered output. (This highlights one way
that the printf idiom is better -- this error is harder to make when
using that.)
Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 4d20ebd..03424e6 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -467,8 +467,6 @@ extern void fprintf_unfiltered (struct ui_file *, const char *, ...) extern void printf_unfiltered (const char *, ...) ATTRIBUTE_PRINTF (1, 2); -extern void print_spaces (int, struct ui_file *); - extern void print_spaces_filtered (int, struct ui_file *); extern const char *n_spaces (int); |