X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fctf-ir%2Fstream-class.c;h=03d8ce8f15f700d4530f0ca1aae7034941f51e47;hb=e22b45d0f7d3ce1311bf96a930bc42326f555202;hp=52a5ed6d2fd6740d787377e1e6a36130d698d46b;hpb=bf55043c2e742cafb86d3a3404d0d35c4cf294a3;p=babeltrace.git diff --git a/lib/ctf-ir/stream-class.c b/lib/ctf-ir/stream-class.c index 52a5ed6d..03d8ce8f 100644 --- a/lib/ctf-ir/stream-class.c +++ b/lib/ctf-ir/stream-class.c @@ -572,14 +572,11 @@ end: return ret; } -int bt_stream_class_add_event_class( - struct bt_stream_class *stream_class, +int bt_stream_class_add_event_class(struct bt_stream_class *stream_class, struct bt_event_class *event_class) { struct bt_trace *trace; int ret = 0; - uint64_t i; - struct bt_clock_class *old_clock_class; if (!stream_class) { BT_LOGW("Invalid parameter: stream class is NULL: " @@ -588,7 +585,6 @@ int bt_stream_class_add_event_class( goto end; } - old_clock_class = stream_class->common.clock_class; trace = BT_FROM_COMMON(bt_stream_class_common_borrow_trace( BT_TO_COMMON(stream_class))); if (trace && trace->is_static) { @@ -614,28 +610,6 @@ int bt_stream_class_add_event_class( (void) bt_trace_object_modification(&obj, trace); } - if (!old_clock_class && stream_class->common.clock_class) { - /* - * Adding this event class updated the stream class's - * single clock class: make sure all the events which - * exist in event pools have an existing clock value for - * this clock class so that any created event object in - * the future (from a pool or not) has this clock value - * available. - */ - for (i = 0; i < stream_class->common.event_classes->len; i++) { - struct bt_event_class *event_class = - stream_class->common.event_classes->pdata[i]; - - BT_ASSERT(event_class); - ret = bt_event_class_update_event_pool_clock_values( - event_class); - if (ret) { - goto end; - } - } - } - end: return ret; }