From: Nick Alcock Date: Fri, 25 Apr 2025 17:30:28 +0000 (+0100) Subject: libctf: drop unnecessary macro X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f17015417643be9d6cb03b840edbb9d8952671ec;p=thirdparty%2Fbinutils-gdb.git libctf: drop unnecessary macro Every use of this macro has been deleted. --- diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index e0145bdd4e6..ee9991b67f3 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -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