From: Mathieu Desnoyers Date: Thu, 27 Jan 2022 21:24:32 +0000 (-0500) Subject: Remove ctx from struct lttng_event_enabler_common X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=34b89182634851e2852c2d3ac7cbb24efb2ee101;p=lttng-ust.git Remove ctx from struct lttng_event_enabler_common Unused (dead code). Signed-off-by: Mathieu Desnoyers Change-Id: I6ed8453cd974738ea5c47789eb4fce196ab0b04a --- diff --git a/src/common/events.h b/src/common/events.h index a7ede200..3e79678a 100644 --- a/src/common/events.h +++ b/src/common/events.h @@ -136,11 +136,6 @@ struct lttng_event_enabler_common { struct lttng_event_enabler_session_common { struct lttng_event_enabler_common parent; struct lttng_ust_channel_common *chan; - /* - * Unused, but kept around to make it explicit that the tracer can do - * it. - */ - struct lttng_ust_ctx *ctx; }; struct lttng_event_recorder_enabler { diff --git a/src/lib/lttng-ust/lttng-events.c b/src/lib/lttng-ust/lttng-events.c index b45e670b..1525ede1 100644 --- a/src/lib/lttng-ust/lttng-events.c +++ b/src/lib/lttng-ust/lttng-events.c @@ -1863,7 +1863,6 @@ void lttng_event_enabler_destroy(struct lttng_event_enabler_common *event_enable caa_container_of(event_enabler, struct lttng_event_enabler_session_common, parent); cds_list_del(&enabler_session->parent.node); - lttng_destroy_context(enabler_session->ctx); break; } case LTTNG_EVENT_ENABLER_TYPE_NOTIFIER: