diff options
author | Michael Mann <mmann78@netscape.net> | 2015-10-13 20:34:43 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-10-15 21:17:27 +0000 |
commit | 26eec29b44ee6b20b6eae78f4658a9277c69c696 (patch) | |
tree | d0f9d82bda9d1036835cded365b1c079064df0b1 /epan/proto.c | |
parent | b212a4eb4370a433451187d8beecf952915298a8 (diff) |
Remove ability to make dissectors "private"
Change-Id: If5897e8137f729503edf2cafb49b2ebeab4716ad
Reviewed-on: https://code.wireshark.org/review/10997
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/epan/proto.c b/epan/proto.c index a5e20566a4..8bfb8df073 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -289,7 +289,6 @@ struct _protocol { int proto_id; /* field ID for this protocol */ gboolean is_enabled; /* TRUE if protocol is enabled */ gboolean can_toggle; /* TRUE if is_enabled can be changed */ - gboolean is_private; /* TRUE is protocol is private */ GList *heur_list; /* Heuristic dissectors associated with this protocol */ }; @@ -5301,7 +5300,6 @@ proto_register_protocol(const char *name, const char *short_name, protocol->fields = g_ptr_array_new(); protocol->is_enabled = TRUE; /* protocol is enabled by default */ protocol->can_toggle = TRUE; - protocol->is_private = FALSE; protocol->heur_list = NULL; /* list will be sorted later by name, when all protocols completed registering */ protocols = g_list_prepend(protocols, protocol); @@ -5368,24 +5366,6 @@ proto_deregister_protocol(const char *short_name) return TRUE; } -void -proto_mark_private(const int proto_id) -{ - protocol_t *protocol = find_protocol_by_id(proto_id); - if (protocol) - protocol->is_private = TRUE; -} - -gboolean -proto_is_private(const int proto_id) -{ - protocol_t *protocol = find_protocol_by_id(proto_id); - if (protocol) - return protocol->is_private; - else - return FALSE; -} - /* * Routines to use to iterate over the protocols. * The argument passed to the iterator routines is an opaque cookie to |