From 63d362f18286f3fff0b39a6049fbedbd8fff617d Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Wed, 20 Mar 2019 09:24:34 -0400 Subject: [PATCH] plugins/ctf/common: remove unused borrow_named_int_field_class() function Signed-off-by: Francis Deslauriers --- .../ctf/common/metadata/ctf-meta-translate.c | 27 ------------------- 1 file changed, 27 deletions(-) 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) { -- 2.34.1