plugins/ctf/common: remove unused borrow_named_int_field_class() function
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 20 Mar 2019 13:24:34 +0000 (09:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/ctf/common/metadata/ctf-meta-translate.c

index d307094ef12fa643fa693475275fca056a844e85..608db66fd95fd82493b6da8dd38bc0a9c7212b75 100644 (file)
@@ -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)
 {
This page took 0.026069 seconds and 4 git commands to generate.