X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent.c;fp=formats%2Fctf%2Fir%2Fevent.c;h=4202b8ff975dbb893ea733891cdcd8fa62697c6d;hb=d74f316bb0394cc2b19c6779809ee7570089ffe0;hp=0999f642901b64f053e4293ccd8fa87716ad565a;hpb=1579cde5dcbded3ca1c58880a8dc1226cb2ae54b;p=babeltrace.git diff --git a/formats/ctf/ir/event.c b/formats/ctf/ir/event.c index 0999f642..4202b8ff 100644 --- a/formats/ctf/ir/event.c +++ b/formats/ctf/ir/event.c @@ -738,59 +738,6 @@ end: return ret; } -struct bt_ctf_event *bt_ctf_event_copy(struct bt_ctf_event *event) -{ - struct bt_ctf_event *copy = NULL; - - if (!event) { - goto error; - } - - copy = g_new0(struct bt_ctf_event, 1); - if (!copy) { - goto error; - } - - bt_object_init(copy, bt_ctf_event_destroy); - copy->event_class = bt_get(event->event_class); - - if (event->event_header) { - copy->event_header = bt_ctf_field_copy(event->event_header); - if (!copy->event_header) { - goto error; - } - } - - if (event->stream_event_context) { - copy->stream_event_context = - bt_ctf_field_copy(event->stream_event_context); - if (!copy->stream_event_context) { - goto error; - } - } - - if (event->context_payload) { - copy->context_payload = bt_ctf_field_copy( - event->context_payload); - if (!copy->context_payload) { - goto error; - } - } - - if (event->fields_payload) { - copy->fields_payload = bt_ctf_field_copy(event->fields_payload); - if (!copy->fields_payload) { - goto error; - } - } - - return copy; - -error: - BT_PUT(copy); - return copy; -} - int bt_ctf_event_set_packet(struct bt_ctf_event *event, struct bt_ctf_packet *packet) {