From ec605896a197776c9b164e226d46034a27da6fa9 Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Fri, 4 Oct 2024 14:30:30 -0400 Subject: [PATCH] fixup: remove dead code --- src/adaptors/amqp/container.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/adaptors/amqp/container.c b/src/adaptors/amqp/container.c index 76eee5ccf..69abb07ba 100644 --- a/src/adaptors/amqp/container.c +++ b/src/adaptors/amqp/container.c @@ -768,8 +768,9 @@ pn_link_t *qd_link_pn(const qd_link_t *link) return link->pn_link; } -qd_session_t *qd_link_session(qd_link_t *link) +qd_session_t *qd_link_get_session(const qd_link_t *link) { + assert(link); return link->qd_session; } @@ -893,13 +894,6 @@ void qd_link_set_link_id(qd_link_t *link, uint64_t link_id) } -qd_session_t *qd_link_get_session(const qd_link_t *link) -{ - assert(link); - return link->qd_session; -} - - qd_session_t *qd_session(pn_session_t *pn_ssn) { assert(pn_ssn && qd_session_from_pn(pn_ssn) == 0);