[RFA 12/12] Remove some unused declarations

Tom Tromey
2017-09-28T19:50:23Z

This removes a couple of unused cleanup-related declarations.

gdb/ChangeLog
2017-09-28 Tom Tromey <tom@tromey.com>

* main.c (captured_main_1): Remove unused declaration.
* spu-multiarch.c (parse_spufs_run): Remove unused declaration.
---
gdb/ChangeLog | 5 +++++
gdb/main.c | 2 --
gdb/spu-multiarch.c | 1 -
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/main.c b/gdb/main.c
index 66ba75b..f174a24 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -498,8 +498,6 @@ captured_main_1 (struct captured_main_args *context)
int save_auto_load;
struct objfile *objfile;

- struct cleanup *chain;
-
#ifdef HAVE_SBRK
/* Set this before constructing scoped_command_stats. */
lim_at_start = (char *) sbrk (0);
diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c
index ebca082..a935a72 100644
--- a/gdb/spu-multiarch.c
+++ b/gdb/spu-multiarch.c
@@ -56,7 +56,6 @@ static int
parse_spufs_run (ptid_t ptid, int *fd, CORE_ADDR *addr)
{
enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ());
- struct cleanup *old_chain;
struct gdbarch_tdep *tdep;
struct regcache *regcache;
gdb_byte buf[4];
--
2.9.5