X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta-translate.c;h=608db66fd95fd82493b6da8dd38bc0a9c7212b75;hb=63d362f18286f3fff0b39a6049fbedbd8fff617d;hp=d307094ef12fa643fa693475275fca056a844e85;hpb=17c7383e4827947dd668952c0cfd4fef5f065152;p=deliverable%2Fbabeltrace.git diff --git a/plugins/ctf/common/metadata/ctf-meta-translate.c b/plugins/ctf/common/metadata/ctf-meta-translate.c index d307094ef..608db66fd 100644 --- a/plugins/ctf/common/metadata/ctf-meta-translate.c +++ b/plugins/ctf/common/metadata/ctf-meta-translate.c @@ -371,33 +371,6 @@ bt_field_class *scope_ctf_field_class_to_ir(struct ctx *ctx) return ir_fc; } -static inline -struct ctf_field_class_int *borrow_named_int_field_class( - struct ctf_field_class_struct *struct_fc, const char *name) -{ - struct ctf_named_field_class *named_fc = NULL; - struct ctf_field_class_int *int_fc = NULL; - - if (!struct_fc) { - goto end; - } - - named_fc = ctf_field_class_struct_borrow_member_by_name(struct_fc, name); - if (!named_fc) { - goto end; - } - - if (named_fc->fc->type != CTF_FIELD_CLASS_TYPE_INT && - named_fc->fc->type != CTF_FIELD_CLASS_TYPE_ENUM) { - goto end; - } - - int_fc = (void *) named_fc->fc; - -end: - return int_fc; -} - static inline void ctf_event_class_to_ir(struct ctx *ctx) {