From: Simon Marchi Date: Thu, 21 Jan 2021 19:07:45 +0000 (-0500) Subject: gdb: remove unused f77_array_offset_tbl from f-valprint.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3abc0cee08121f4957a1286e93a3fcb0e969869;p=binutils-gdb.git gdb: remove unused f77_array_offset_tbl from f-valprint.c This variable appears to be unused. Its uses were removed in commit 3e2e34f8623d ("fort_dyn_array: Use value constructor instead of raw-buffer manipulation.") back in 2016. gdb/ChangeLog: * f-valprint.c (f77_array_offset_tbl): Remove. Change-Id: I39ff8d1b402e54ca2ade936f65e540f500cce86e --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea92bcbf4dd..b074b1babe5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-01-21 Simon Marchi + + * f-valprint.c (f77_array_offset_tbl): Remove. + 2021-01-21 Simon Marchi * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file. diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 613da3e4696..066827f21f2 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -39,11 +39,6 @@ static void f77_get_dynamic_length_of_aggregate (struct type *); -int f77_array_offset_tbl[MAX_FORTRAN_DIMS + 1][2]; - -/* Array which holds offsets to be applied to get a row's elements - for a given array. Array also holds the size of each subarray. */ - LONGEST f77_get_lowerbound (struct type *type) {