]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: drop unnecessary macro
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:30:28 +0000 (18:30 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:23:07 +0000 (21:23 +0100)
Every use of this macro has been deleted.

libctf/ctf-impl.h

index e0145bdd4e6e6a75a17fa737ea7d16e7ab35e163..ee9991b67f3a85d8e365213c5bc667e4ea103be8 100644 (file)
@@ -611,11 +611,6 @@ extern ctf_id_t ctf_index_to_type (const ctf_dict_t *, uint32_t);
 /* * If an offs is not aligned already then round it up and align it. */
 #define LCTF_ALIGN_OFFS(offs, align) ((offs + (align - 1)) & ~(align - 1))
 
-#define LCTF_INDEX_TO_TYPEPTR(fp, i)                                   \
-  ((i > fp->ctf_stypes) ?                                              \
-   ctf_dtd_lookup (fp, ctf_index_to_type (fp, i))->dtd_data :          \
-   (fp)->ctf_txlate[(i)])
-
 /* The non *INFO variants of these macros acquire the relevant info from the
    suffixed type, if the type is prefixed.  (Internally to libctf, all types
    that may ever take a prefix are prefixed until they are written out, so that