From bd79dae438608b787ce491bae2bdfe6fdd06d0e0 Mon Sep 17 00:00:00 2001 From: Graham Bloice Date: Tue, 1 Jul 2014 12:52:09 +0100 Subject: Remove debugging info from protocol tree for frame Change-Id: Id7f02087e536964bfa6d01a3646c20035a3ab6cb Reviewed-on: https://code.wireshark.org/review/2746 Reviewed-by: Graham Bloice Tested-by: Graham Bloice Reviewed-by: Anders Broman --- epan/dissectors/packet-frame.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'epan') diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index 58cc59d7ad..0a2a090fb0 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -87,7 +87,6 @@ static int hf_frame_pack_preamble_error = -1; static int hf_frame_pack_symbol_error = -1; static int hf_frame_wtap_encap = -1; static int hf_comments_text = -1; -static int hf_frame_num_p_prot_data = -1; static gint ett_frame = -1; static gint ett_flags = -1; @@ -439,16 +438,6 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) proto_tree_set_visible(fh_tree, old_visible); } - if(pinfo->fd->pfd != 0){ - proto_item *ppd_item; - guint num_entries = g_slist_length(pinfo->fd->pfd); - guint i; - ppd_item = proto_tree_add_uint(fh_tree, hf_frame_num_p_prot_data, tvb, 0, 0, num_entries); - PROTO_ITEM_SET_GENERATED(ppd_item); - for(i=0; ip2p_dir != P2P_DIR_UNKNOWN) { proto_tree_add_int(fh_tree, hf_frame_p2p_dir, tvb, @@ -806,11 +795,6 @@ proto_register_frame(void) { "Comment", "frame.comment", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, - - { &hf_frame_num_p_prot_data, - { "Number of per-protocol-data", "frame.p_prot_data", - FT_UINT32, BASE_DEC, NULL, 0x0, - NULL, HFILL }}, }; static hf_register_info hf_encap = -- cgit v1.2.3