From f6db444c2afb11f7c8d855d7d630f0b572224955 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Fri, 9 Apr 1999 13:31:15 +0000 Subject: [PATCH] Removed 2 blocks of code that if #ifdef'ed out. They're just not needed. svn path=/trunk/; revision=244 --- ethereal.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ethereal.c b/ethereal.c index a5f699f2dc..4da5f691e7 100644 --- a/ethereal.c +++ b/ethereal.c @@ -1,6 +1,6 @@ /* ethereal.c * - * $Id: ethereal.c,v 1.30 1999/04/06 16:35:46 gram Exp $ + * $Id: ethereal.c,v 1.31 1999/04/09 13:31:15 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -131,23 +131,11 @@ void file_sel_ok_cb(GtkWidget *w, GtkFileSelection *fs) { gchar *cf_name; int err; -#if 0 - GtkWidget *filter_te = NULL; - /* Gilbert --- I added this if statement. Is this right? */ - if (w) - filter_te = gtk_object_get_data(GTK_OBJECT(w), E_DFILTER_TE_KEY); -#endif cf_name = g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION (fs))); gtk_widget_hide(GTK_WIDGET (fs)); gtk_widget_destroy(GTK_WIDGET (fs)); -#if 0 - if (w && cf.dfilter) { - g_free(cf.dfilter); - cf.dfilter = g_strdup(gtk_entry_get_text(GTK_ENTRY(filter_te))); - } -#endif /* this depends upon load_cap_file removing the filename from * cf_name, leaving only the path to the directory. */ if ((err = load_cap_file(cf_name, &cf)) == 0)