Remove unused declarations

This removes some unused cleanup declarations.

2017-10-03  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.
This commit is contained in:
Tom Tromey 2017-09-29 22:22:49 -06:00
parent e05550d7a4
commit 245ad7d373
4 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2017-10-03 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-10-03 Tom Tromey <tom@tromey.com>
* utils.c (internal_vproblem): Use std::string.

View File

@ -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;

View File

@ -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';

View File

@ -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)