aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-10-28 11:47:52 -0400
committerMichael Mann <mmann78@netscape.net>2017-10-28 18:18:25 +0000
commitdb3be9f850446c1a1c4894f5d08d67a370abf94a (patch)
tree6ada925153ff51573a81c308f7c9f6c66c28391d
parent051dcd1086ad98d4c604740a6f95fd8eec9a75d3 (diff)
Remove display of "old" key in GTK configuration hashtable dialog
The information was for internal debugging, presumably as conversations were converted to use the new algorithm. The algorithm has been in place for a few years now and GTK is deprecated. Change-Id: Ice0d0611bfbc0970089c671ab2cca15bfa5bf2fa Reviewed-on: https://code.wireshark.org/review/24147 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--ui/gtk/conversation_hastables_dlg.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/ui/gtk/conversation_hastables_dlg.c b/ui/gtk/conversation_hastables_dlg.c
index c4f9e7c..c7c6122 100644
--- a/ui/gtk/conversation_hastables_dlg.c
+++ b/ui/gtk/conversation_hastables_dlg.c
@@ -40,21 +40,6 @@ static GtkWidget *conversation_hastables_dlg_w = NULL;
#define CONV_STR_BUF_MAX 1024
-static guint
-conversation_hash_exact_old(gconstpointer v)
-{
- const conversation_key *key = (const conversation_key *)v;
- guint hash_val;
-
- hash_val = 0;
- hash_val = add_address_to_hash(hash_val, &key->addr1);
- hash_val += key->port1;
- hash_val = add_address_to_hash(hash_val, &key->addr2);
- hash_val += key->port2;
-
- return hash_val;
-}
-
static void
conversation_hashtable_exact_to_texbuff(gpointer key, gpointer value _U_, gpointer user_data)
{
@@ -63,7 +48,7 @@ conversation_hashtable_exact_to_texbuff(gpointer key, gpointer value _U_, gpoint
/*conversation_t *conversation = (conversation_t *)value;*/
conversation_key *conv_key = (conversation_key*)key;
- g_snprintf(string_buff, CONV_STR_BUF_MAX, "Key:0x%x old key:0x%x\n",conversation_hash_exact(conv_key),conversation_hash_exact_old(conv_key));
+ g_snprintf(string_buff, CONV_STR_BUF_MAX, "Key:0x%x\n",conversation_hash_exact(conv_key));
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);