From: Simon Marchi Date: Mon, 18 Nov 2019 19:37:33 +0000 (-0500) Subject: ctf: remove ctf_msg_iter::set_stream X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=922a72baa0fe3b2d0bce101baa2981918880d0cc ctf: remove ctf_msg_iter::set_stream This field is set but not used. Change-Id: Ibca38c8421b8d734462077a19da1726a817f3cb6 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2401 Reviewed-by: Philippe Proulx --- diff --git a/src/plugins/ctf/common/msg-iter/msg-iter.c b/src/plugins/ctf/common/msg-iter/msg-iter.c index c4b98da0..70c839bc 100644 --- a/src/plugins/ctf/common/msg-iter/msg-iter.c +++ b/src/plugins/ctf/common/msg-iter/msg-iter.c @@ -133,9 +133,6 @@ struct ctf_msg_iter { */ bool dry_run; - /* True to set the stream */ - bool set_stream; - /* * Current dynamic scope field pointer. * @@ -2899,7 +2896,6 @@ enum ctf_msg_iter_status ctf_msg_iter_get_next_message( BT_ASSERT_DBG(msg_it); BT_ASSERT_DBG(message); - msg_it->set_stream = true; BT_COMP_LOGD("Getting next message: msg-it-addr=%p", msg_it); while (true) { @@ -3036,7 +3032,6 @@ enum ctf_msg_iter_status decode_until_state( struct ctf_msg_iter *msg_it, bt_self_component *self_comp = msg_it->self_comp; BT_ASSERT_DBG(msg_it); - msg_it->set_stream = false; do { /*