From: Francis Deslauriers Date: Wed, 20 Mar 2019 13:24:34 +0000 (-0400) Subject: plugins/ctf/common: remove unused borrow_named_int_field_class() function X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=63d362f18286f3fff0b39a6049fbedbd8fff617d;p=deliverable%2Fbabeltrace.git plugins/ctf/common: remove unused borrow_named_int_field_class() function Signed-off-by: Francis Deslauriers --- 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) {