Remove mapped_index::total_size
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 18 May 2018 20:02:44 +0000 (16:02 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 18 May 2018 20:02:44 +0000 (16:02 -0400)
It is unused.

gdb/ChangeLog:

* dwarf2read.c (mapped_index) <total_size>: Remove.

gdb/ChangeLog
gdb/dwarf2read.c

index 57edb23..cb7a306 100644 (file)
@@ -1,5 +1,9 @@
 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
 
+       * dwarf2read.c (mapped_index) <total_size>: Remove.
+
+2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
+
        * unittests/format_pieces-selftests.c (test_format_specifier):
        Add ARI comments.
 
index b2ecadf..aec770b 100644 (file)
@@ -197,9 +197,6 @@ struct mapped_index final : public mapped_index_base
   /* Index data format version.  */
   int version;
 
-  /* The total length of the buffer.  */
-  off_t total_size;
-
   /* The address table data.  */
   gdb::array_view<const gdb_byte> address_table;
 
@@ -3500,7 +3497,6 @@ to use the section anyway."),
     return 0;
 
   map->version = version;
-  map->total_size = section->size;
 
   metadata = (offset_type *) (addr + sizeof (offset_type));