[RFA,4/8] Remove unused declarations
Commit Message
This removes some unused cleanup declarations.
2017-09-30 Tom Tromey <tom@tromey.com>
* mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
declaration.
* printcmd.c (x_command): Remove unused declaration.
* symfile.c (symbol_file_command): Remove unused declaration.
---
gdb/ChangeLog | 7 +++++++
gdb/mi/mi-main.c | 1 -
gdb/printcmd.c | 1 -
gdb/symfile.c | 1 -
4 files changed, 7 insertions(+), 3 deletions(-)
@@ -1,5 +1,12 @@
2017-09-30 Tom Tromey <tom@tromey.com>
+ * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
+ declaration.
+ * printcmd.c (x_command): Remove unused declaration.
+ * symfile.c (symbol_file_command): Remove unused declaration.
+
+2017-09-30 Tom Tromey <tom@tromey.com>
+
* utils.c (internal_vproblem): Use std::string.
(defaulted_query): Likewise.
@@ -2730,7 +2730,6 @@ mi_cmd_trace_frame_collected (const char *command, char **argv, int argc)
/* Trace state variables. */
{
- struct cleanup *cleanups;
int tvar;
int i;
@@ -1606,7 +1606,6 @@ static void
x_command (char *exp, int from_tty)
{
struct format_data fmt;
- struct cleanup *old_chain;
struct value *val;
fmt.format = last_format ? last_format : 'x';
@@ -1629,7 +1629,6 @@ symbol_file_command (const char *args, int from_tty)
{
objfile_flags flags = OBJF_USERLOADED;
symfile_add_flags add_flags = 0;
- struct cleanup *cleanups;
char *name = NULL;
if (from_tty)