You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2019/07/17 16:59:11 UTC
[qpid-dispatch] branch master updated: DISPATCH-1385
qd_message_list_t is dead code
This is an automated email from the ASF dual-hosted git repository.
kgiusti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new bea6f0e DISPATCH-1385 qd_message_list_t is dead code
bea6f0e is described below
commit bea6f0e200ecf544381d1cdd23f59ef1520f6616
Author: Francesco Nigro <ni...@gmail.com>
AuthorDate: Fri Jul 12 18:33:32 2019 +0200
DISPATCH-1385 qd_message_list_t is dead code
Signed-off-by: Kenneth Giusti <kg...@apache.org>
This closes #535
---
include/qpid/dispatch/message.h | 10 ----------
src/message.c | 2 --
src/message_private.h | 1 -
3 files changed, 13 deletions(-)
diff --git a/include/qpid/dispatch/message.h b/include/qpid/dispatch/message.h
index 01e3913..26ddb4b 100644
--- a/include/qpid/dispatch/message.h
+++ b/include/qpid/dispatch/message.h
@@ -50,16 +50,6 @@
typedef struct qd_message_t qd_message_t;
-DEQ_DECLARE(qd_message_t, qd_message_list_t);
-
-/** Message representation.
- *@internal
- */
-struct qd_message_t {
- DEQ_LINKS(qd_message_t);
- // Private members not listed here.
-};
-
/** Amount of message to be parsed. */
typedef enum {
QD_DEPTH_NONE,
diff --git a/src/message.c b/src/message.c
index 267f97b..ddc49bb 100644
--- a/src/message.c
+++ b/src/message.c
@@ -886,7 +886,6 @@ qd_message_t *qd_message()
if (!msg)
return 0;
- DEQ_ITEM_INIT(msg);
msg->cursor.buffer = 0;
msg->cursor.cursor = 0;
msg->sent_depth = QD_DEPTH_NONE;
@@ -995,7 +994,6 @@ qd_message_t *qd_message_copy(qd_message_t *in_msg)
if (!copy)
return 0;
- DEQ_ITEM_INIT(copy);
qd_buffer_list_clone(©->ma_to_override, &msg->ma_to_override);
qd_buffer_list_clone(©->ma_trace, &msg->ma_trace);
qd_buffer_list_clone(©->ma_ingress, &msg->ma_ingress);
diff --git a/src/message_private.h b/src/message_private.h
index 3368ec7..7bc66dc 100644
--- a/src/message_private.h
+++ b/src/message_private.h
@@ -124,7 +124,6 @@ typedef struct {
} qd_message_content_t;
typedef struct {
- DEQ_LINKS(qd_message_t); // Deque linkage that overlays the qd_message_t
qd_iterator_pointer_t cursor; // A pointer to the current location of the outgoing byte stream.
qd_message_depth_t message_depth; // What is the depth of the message that has been received so far
qd_message_depth_t sent_depth; // How much of the message has been sent? QD_DEPTH_NONE means nothing has been sent so far, QD_DEPTH_HEADER means the header has already been sent, dont send it again and so on.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org