From: Mathieu Desnoyers Date: Thu, 9 May 2024 17:51:39 +0000 (-0400) Subject: lttng-events: Remove dead code X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cac5a777e47a880008434922ba931d7c700d6fc4;p=lttng-modules.git lttng-events: Remove dead code Functions lttng_event_notifier_enabler_enable and lttng_event_notifier_enabler_disable are unused since the 2.13 refactoring, remove them. Signed-off-by: Mathieu Desnoyers Change-Id: I18d0d483bf54cbc7d158413f27111271c68ac37d --- diff --git a/src/lttng-events.c b/src/lttng-events.c index b8fa11e3..73f591fd 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -2448,26 +2448,6 @@ void lttng_event_notifier_enabler_group_add(struct lttng_event_notifier_group *e mutex_unlock(&sessions_mutex); } -int lttng_event_notifier_enabler_enable( - struct lttng_event_notifier_enabler *event_notifier_enabler) -{ - mutex_lock(&sessions_mutex); - lttng_event_notifier_enabler_as_enabler(event_notifier_enabler)->enabled = 1; - lttng_event_notifier_group_sync_enablers(event_notifier_enabler->group); - mutex_unlock(&sessions_mutex); - return 0; -} - -int lttng_event_notifier_enabler_disable( - struct lttng_event_notifier_enabler *event_notifier_enabler) -{ - mutex_lock(&sessions_mutex); - lttng_event_notifier_enabler_as_enabler(event_notifier_enabler)->enabled = 0; - lttng_event_notifier_group_sync_enablers(event_notifier_enabler->group); - mutex_unlock(&sessions_mutex); - return 0; -} - int lttng_event_notifier_enabler_attach_capture_bytecode( struct lttng_event_notifier_enabler *event_notifier_enabler, struct lttng_kernel_abi_capture_bytecode __user *bytecode)