sim: unify symbol table handling
[binutils-gdb.git] / gdb / jit.c
index 1b772ab175c4b25df5bd6d06359cfff70ae03f30..81a2c26ccf6c59a8cffd862013faa60dfe74bd9b 100644 (file)
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -1171,12 +1171,8 @@ static void
 jit_dealloc_cache (struct frame_info *this_frame, void *cache)
 {
   struct jit_unwind_private *priv_data = (struct jit_unwind_private *) cache;
-  struct gdbarch *frame_arch;
-  int i;
 
   gdb_assert (priv_data->regcache != NULL);
-  frame_arch = get_frame_arch (priv_data->this_frame);
-
   regcache_xfree (priv_data->regcache);
   xfree (priv_data);
 }