diff options
author | Tom Tromey <tromey@adacore.com> | 2025-01-15 16:18:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-01-17 08:52:04 -0700 |
commit | b5f538d5cada5cc530a4ee4713d1bad76416d3fd (patch) | |
tree | 4188b72dd2c3a3ab4c7613bfbec9b20c74e63110 | |
parent | 8d6a3c8e72657ae8d8abdc466b17e31657b2e273 (diff) | |
download | gdb-b5f538d5cada5cc530a4ee4713d1bad76416d3fd.zip gdb-b5f538d5cada5cc530a4ee4713d1bad76416d3fd.tar.gz gdb-b5f538d5cada5cc530a4ee4713d1bad76416d3fd.tar.bz2 |
Remove gdb_index_unpack
gdb_index_unpack is not used and can be removed. The include of
extract-store-integer.h is also no longer needed by this file.
Approved-By: Andrew Burgess <aburgess@redhat.com>
-rw-r--r-- | gdb/dwarf2/index-common.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/dwarf2/index-common.h b/gdb/dwarf2/index-common.h index b9e0a63..ca37721 100644 --- a/gdb/dwarf2/index-common.h +++ b/gdb/dwarf2/index-common.h @@ -20,7 +20,6 @@ #ifndef GDB_DWARF2_INDEX_COMMON_H #define GDB_DWARF2_INDEX_COMMON_H -#include "extract-store-integer.h" #include "hashtab.h" /* The suffix for an index file. */ @@ -32,15 +31,6 @@ architecture-independent. */ typedef uint32_t offset_type; -/* Unpack a 32-bit little-endian value. */ - -static inline offset_type -gdb_index_unpack (const gdb_byte *value) -{ - return (offset_type) extract_unsigned_integer (value, sizeof (offset_type), - BFD_ENDIAN_LITTLE); -} - /* The hash function for strings in the mapped index. This is the same as SYMBOL_HASH_NEXT, but we keep a separate copy to maintain control over the implementation. This is necessary because the hash function is tied to the |