ir: do not create empty structure for optional scope field types
[babeltrace.git] / lib / ctf-ir / event-class.c
index 3fc60603103bdda8f4d63e7aaf732b8c294fdbb0..9f82e176dcd286f0a6cf4f7aa20d1ac0ce45043d 100644 (file)
@@ -79,12 +79,6 @@ struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name)
                goto error;
        }
 
-       event_class->context = bt_ctf_field_type_structure_create();
-       if (!event_class->context) {
-               BT_LOGE_STR("Cannot create event class's initial context field type object.");
-               goto error;
-       }
-
        event_class->attributes = bt_ctf_attributes_create();
        if (!event_class->attributes) {
                BT_LOGE_STR("Cannot create event class's attributes object.");
This page took 0.024097 seconds and 4 git commands to generate.