From b9c6e2d3915bc41b04420fb1fa99b1b7d12b0a21 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 16 Apr 2017 19:37:00 -0700 Subject: Remove unnecessary tap. The tap was just a trick to get fields and protocols registered as being of interest. Now that we have mechanisms by which postdissectors can explicitly register fields and protocols as being of interest, and are using that, the trick is no longer needed. Change-Id: Ib2620ff32c41ffa050203c1d4481c63535fb3f4b Reviewed-on: https://code.wireshark.org/review/21156 Reviewed-by: Guy Harris --- plugins/mate/mate_grammar.lemon | 6 ------ 1 file changed, 6 deletions(-) (limited to 'plugins/mate/mate_grammar.lemon') diff --git a/plugins/mate/mate_grammar.lemon b/plugins/mate/mate_grammar.lemon index 1235a2dd3d..f40243789f 100644 --- a/plugins/mate/mate_grammar.lemon +++ b/plugins/mate/mate_grammar.lemon @@ -440,8 +440,6 @@ pdu_decl ::= */ mc->wanted_hfids = g_array_append_val(mc->wanted_hfids, Field->id); - g_string_append_printf(mc->protos_filter,"||%s",Field->abbrev); - /* flip the transport_stack */ for (i = Stack->len - 1; Stack->len; i--) { g_ptr_array_add(transport_stack,g_ptr_array_remove_index(Stack,i)); @@ -509,8 +507,6 @@ last_extracted_statement(A) ::= . { A = mc->defaults.pdu.last_extracted; } proto_stack(A) ::= proto_stack(B) SLASH field(C). { int* hfidp = (int *)g_malloc(sizeof(int)); - g_string_append_printf(mc->fields_filter,"||%s",C->abbrev); - *hfidp = C->id; g_ptr_array_add(B,hfidp); A = B; @@ -520,8 +516,6 @@ proto_stack(A) ::= field(B). { int* hfidp = (int *)g_malloc(sizeof(int)); *hfidp = B->id; - g_string_append_printf(mc->fields_filter,"||%s",B->abbrev); - A = g_ptr_array_new(); g_ptr_array_add(A,hfidp); } -- cgit v1.2.1