diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-07-19 19:50:39 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-07-19 20:26:46 +0000 |
commit | 21b99e3eced4fc4d016fe1293e44966ebbcbd291 (patch) | |
tree | 449a17cb212c24b788b85638f590935c96331de1 /epan/packet.c | |
parent | 19b28488acb0f603fe0ddde47d7063c0d521238c (diff) |
Remove functions that got reintroduced by error in g21e5a95
Change-Id: I5e5956727641be3e377109dd032da76f6b21c481
Reviewed-on: https://code.wireshark.org/review/9707
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/epan/packet.c b/epan/packet.c index 77ed6c2a48..e043a0d9bc 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -1963,25 +1963,6 @@ has_heur_dissector_list(const gchar *name) { return (find_heur_dissector_list(name) != NULL); } - -static int -find_matching_heur_dissector_by_short_name(gconstpointer a, gconstpointer b) -{ - const gchar *str_a = proto_get_protocol_short_name(((const heur_dtbl_entry_t *)a)->protocol); - const gchar *str_b = (const gchar*)b; - - return strcmp(str_a, str_b); -} - -heur_dtbl_entry_t* -find_heur_dissector_by_short_name(heur_dissector_list_t heur_list, const char *short_name) -{ - GSList *found_entry; - found_entry = g_slist_find_custom(heur_list->dissectors, (gpointer) short_name, find_matching_heur_dissector_by_short_name); - - return found_entry ? (heur_dtbl_entry_t *)(found_entry->data) : NULL; -} - heur_dtbl_entry_t* find_heur_dissector_by_unique_short_name(const char *short_name) { return (heur_dtbl_entry_t*)g_hash_table_lookup(heuristic_short_names, (gpointer)short_name); |