aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-08-30 16:01:42 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-08-30 16:01:42 +0000
commit6edb400771e3da048045d91af89cc02f7163f27f (patch)
treebaef991285ebc29cbf857243618836be8bfd12f7 /dfilter.c
parentfc7bf366a3dad3df720a935738495ab546957ba5 (diff)
Now that FT_BOOLEAN display filter fields are treated differently (only
their existence is checked), some FT_BOOLEAN-related functions in dfilter.c are no longer called. So I removed them. svn path=/trunk/; revision=611
Diffstat (limited to 'dfilter.c')
-rw-r--r--dfilter.c63
1 files changed, 1 insertions, 62 deletions
diff --git a/dfilter.c b/dfilter.c
index 57ac05be7f..916bf849c8 100644
--- a/dfilter.c
+++ b/dfilter.c
@@ -1,7 +1,7 @@
/* dfilter.c
* Routines for display filters
*
- * $Id: dfilter.c,v 1.18 1999/08/30 15:51:43 gram Exp $
+ * $Id: dfilter.c,v 1.19 1999/08/30 16:01:42 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -535,18 +535,6 @@ gboolean fill_array_bytes_variable(GNode *gnode, gpointer data)
return FALSE; /* FALSE = do not end traversal of GNode tree */
}
-gboolean fill_array_boolean_variable(GNode *gnode, gpointer data)
-{
- proto_tree_search_info *sinfo = (proto_tree_search_info*)data;
- field_info *fi = (field_info*) (gnode->data);
-
- if (fi->hfinfo->id == sinfo->target) {
- g_array_append_val(sinfo->result.array, fi->value.boolean);
- }
-
- return FALSE; /* FALSE = do not end traversal of GNode tree */
-}
-
gboolean fill_array_numeric_value(GNode *gnode, gpointer data)
{
GArray *array = (GArray*)data;
@@ -577,17 +565,6 @@ gboolean fill_array_bytes_value(GNode *gnode, gpointer data)
return FALSE; /* FALSE = do not end traversal of GNode tree */
}
-gboolean fill_array_boolean_value(GNode *gnode, gpointer data)
-{
- GArray *array = (GArray*)data;
- dfilter_node *dnode = (dfilter_node*) (gnode->data);
-
- g_array_append_val(array, dnode->value.boolean);
-
- return FALSE; /* FALSE = do not end traversal of GNode tree */
-}
-
-
gboolean check_relation_numeric(gint operand, GArray *a, GArray *b)
{
int i, j, len_a, len_b;
@@ -763,41 +740,3 @@ gboolean check_relation_bytes(gint operand, GArray *a, GArray *b)
return FALSE;
}
-gboolean check_relation_boolean(gint operand, GArray *a, GArray *b)
-{
- int i, j, len_a, len_b;
- guint32 val_a;
-
- len_a = a->len;
- len_b = b->len;
-
-
- switch(operand) {
- case TOK_EQ:
- for(i = 0; i < len_a; i++) {
- val_a = g_array_index(a, guint32, i);
- for (j = 0; j < len_b; j++) {
- if (val_a == g_array_index(b, guint32, j))
- return TRUE;
- }
- }
- return FALSE;
-
- case TOK_NE:
- for(i = 0; i < len_a; i++) {
- val_a = g_array_index(a, guint32, i);
- for (j = 0; j < len_b; j++) {
- if (val_a != g_array_index(b, guint32, j))
- return TRUE;
- }
- }
- return FALSE;
-
- default:
- g_assert_not_reached();
- }
-
- g_assert_not_reached();
- return FALSE;
-}
-