qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject qpid-dispatch git commit: DISPATCH-390 Remove dead code - unused qd_link_get/set_conn_context()
Date Tue, 07 Feb 2017 21:44:49 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 4cb6e737a -> 9422a77d5


DISPATCH-390 Remove dead code - unused qd_link_get/set_conn_context()


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/9422a77d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/9422a77d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/9422a77d

Branch: refs/heads/master
Commit: 9422a77d50d03327f886dc7a9103d34606723096
Parents: 4cb6e73
Author: Alan Conway <aconway@redhat.com>
Authored: Tue Feb 7 16:38:09 2017 -0500
Committer: Alan Conway <aconway@redhat.com>
Committed: Tue Feb 7 16:44:09 2017 -0500

----------------------------------------------------------------------
 include/qpid/dispatch/container.h |  7 -------
 src/container.c                   | 35 ----------------------------------
 2 files changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/9422a77d/include/qpid/dispatch/container.h
----------------------------------------------------------------------
diff --git a/include/qpid/dispatch/container.h b/include/qpid/dispatch/container.h
index 3e175af..bcb079c 100644
--- a/include/qpid/dispatch/container.h
+++ b/include/qpid/dispatch/container.h
@@ -162,13 +162,6 @@ void qd_link_free(qd_link_t *link);
 void qd_link_set_context(qd_link_t *link, void *link_context);
 void *qd_link_get_context(qd_link_t *link);
 
-/**
- * Link context associated with the link's connection for storing state shared across
- * all links in a connection.
- */
-void qd_link_set_conn_context(qd_link_t *link, void *link_context);
-void *qd_link_get_conn_context(qd_link_t *link);
-
 void policy_notify_opened(void *container, qd_connection_t *conn, void *context);
 qd_direction_t qd_link_direction(const qd_link_t *link);
 pn_snd_settle_mode_t qd_link_remote_snd_settle_mode(const qd_link_t *link);

http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/9422a77d/src/container.c
----------------------------------------------------------------------
diff --git a/src/container.c b/src/container.c
index c90c633..d2af4e0 100644
--- a/src/container.c
+++ b/src/container.c
@@ -846,41 +846,6 @@ void *qd_link_get_context(qd_link_t *link)
     return link->context;
 }
 
-
-void qd_link_set_conn_context(qd_link_t *link, void *context)
-{
-    if (!link || !link->pn_link)
-        return;
-    pn_session_t *pn_sess = pn_link_session(link->pn_link);
-    if (!pn_sess)
-        return;
-    pn_connection_t *pn_conn = pn_session_connection(pn_sess);
-    if (!pn_conn)
-        return;
-    qd_connection_t *conn = (qd_connection_t*) pn_connection_get_context(pn_conn);
-    if (!conn)
-        return;
-    qd_connection_set_link_context(conn, context);
-}
-
-
-void *qd_link_get_conn_context(qd_link_t *link)
-{
-    if (!link || !link->pn_link)
-        return 0;
-    pn_session_t *pn_sess = pn_link_session(link->pn_link);
-    if (!pn_sess)
-        return 0;
-    pn_connection_t *pn_conn = pn_session_connection(pn_sess);
-    if (!pn_conn)
-        return 0;
-    qd_connection_t *conn = (qd_connection_t*) pn_connection_get_context(pn_conn);
-    if (!conn)
-        return 0;
-    return qd_connection_get_link_context(conn);
-}
-
-
 pn_link_t *qd_link_pn(qd_link_t *link)
 {
     return link->pn_link;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message