From 41beb6eb6530c6ed818b4da2b73e91dee75498f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 5 Dec 2024 19:52:14 +0000 Subject: [PATCH] Clean-up: sessiond: remove unused ust_app_channel::ctx_list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ice55acc6a40fd307e34ba952abd51b957768d131 Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/ust-app.cpp | 2 -- src/bin/lttng-sessiond/ust-app.hpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 802b593dc..65e97e1dc 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -1215,7 +1215,6 @@ alloc_ust_app_channel(const char *name, lttng_ht_node_init_str(&ua_chan->node, ua_chan->name); CDS_INIT_LIST_HEAD(&ua_chan->streams.head); - CDS_INIT_LIST_HEAD(&ua_chan->ctx_list); /* Copy attributes */ if (attr) { @@ -2926,7 +2925,6 @@ static int create_ust_app_channel_context(struct ust_app_channel *ua_chan, lttng_ht_node_init_ulong(&ua_ctx->node, (unsigned long) ua_ctx->ctx.ctx); lttng_ht_add_ulong(ua_chan->ctx, &ua_ctx->node); - cds_list_add_tail(&ua_ctx->list, &ua_chan->ctx_list); ret = create_ust_channel_context(ua_chan, ua_ctx, app); if (ret < 0) { diff --git a/src/bin/lttng-sessiond/ust-app.hpp b/src/bin/lttng-sessiond/ust-app.hpp index 515dfdb4f..a06debd80 100644 --- a/src/bin/lttng-sessiond/ust-app.hpp +++ b/src/bin/lttng-sessiond/ust-app.hpp @@ -179,7 +179,6 @@ struct ust_app_channel { * user added them. */ struct lttng_ht *ctx; - struct cds_list_head ctx_list; struct lttng_ht *events; uint64_t tracefile_size; -- 2.39.5