lib: remove CTF concepts of packet and event headers
[babeltrace.git] / lib / trace-ir / resolve-field-path.c
index 00ec6447b49fd9f00e75ac814a21bb44a6271180..597eb74325fed5a9e39a795b6e9e66c71d9f26b3 100644 (file)
@@ -124,24 +124,12 @@ struct bt_field_path *find_field_class_in_ctx(struct bt_field_class *fc,
        struct bt_field_path *field_path = NULL;
        int ret;
 
-       ret = find_field_class(ctx->packet_header, BT_SCOPE_PACKET_HEADER,
-               fc, &field_path);
-       if (ret || field_path) {
-               goto end;
-       }
-
        ret = find_field_class(ctx->packet_context, BT_SCOPE_PACKET_CONTEXT,
                fc, &field_path);
        if (ret || field_path) {
                goto end;
        }
 
-       ret = find_field_class(ctx->event_header, BT_SCOPE_EVENT_HEADER,
-               fc, &field_path);
-       if (ret || field_path) {
-               goto end;
-       }
-
        ret = find_field_class(ctx->event_common_context,
                BT_SCOPE_EVENT_COMMON_CONTEXT, fc, &field_path);
        if (ret || field_path) {
@@ -209,12 +197,8 @@ struct bt_field_class *borrow_root_field_class(
                struct bt_resolve_field_path_context *ctx, enum bt_scope scope)
 {
        switch (scope) {
-       case BT_SCOPE_PACKET_HEADER:
-               return ctx->packet_header;
        case BT_SCOPE_PACKET_CONTEXT:
                return ctx->packet_context;
-       case BT_SCOPE_EVENT_HEADER:
-               return ctx->event_header;
        case BT_SCOPE_EVENT_COMMON_CONTEXT:
                return ctx->event_common_context;
        case BT_SCOPE_EVENT_SPECIFIC_CONTEXT:
This page took 0.024361 seconds and 4 git commands to generate.