From c86dad837122e20e5b4a4c18935be7f335d51d3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 5 Dec 2024 20:49:20 +0000 Subject: [PATCH] Clean-up: sessiond: remove unused ust_app_ctx::list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ib13497dea90fa1d22bee51b7745a1960e09181f4 Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/ust-app.cpp | 3 --- src/bin/lttng-sessiond/ust-app.hpp | 1 - 2 files changed, 4 deletions(-) diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 21b67e9d4..0a5fda52f 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -583,7 +583,6 @@ static void delete_ust_app_channel(int sock, lttng::urcu::lfht_iteration_adapter(*ua_chan->ctx->ht)) { - cds_list_del(&ua_ctx->list); ret = cds_lfht_del(ua_chan->ctx->ht, &ua_ctx->node.node); LTTNG_ASSERT(!ret); delete_ust_app_ctx(sock, ua_ctx, app); @@ -1366,8 +1365,6 @@ static struct ust_app_ctx *alloc_ust_app_ctx(struct lttng_ust_context_attr *uctx goto error; } - CDS_INIT_LIST_HEAD(&ua_ctx->list); - if (uctx) { memcpy(&ua_ctx->ctx, uctx, sizeof(ua_ctx->ctx)); if (uctx->ctx == LTTNG_UST_ABI_CONTEXT_APP_CONTEXT) { diff --git a/src/bin/lttng-sessiond/ust-app.hpp b/src/bin/lttng-sessiond/ust-app.hpp index cad2a3806..44ccb6185 100644 --- a/src/bin/lttng-sessiond/ust-app.hpp +++ b/src/bin/lttng-sessiond/ust-app.hpp @@ -112,7 +112,6 @@ struct ust_app_ctx { struct lttng_ust_context_attr ctx; struct lttng_ust_abi_object_data *obj; struct lttng_ht_node_ulong node; - struct cds_list_head list; }; struct ust_app_event { -- 2.39.5