]> granicus.if.org Git - graphviz/commitdiff
better node list
authorarif <devnull@localhost>
Thu, 19 Nov 2009 21:01:06 +0000 (21:01 +0000)
committerarif <devnull@localhost>
Thu, 19 Nov 2009 21:01:06 +0000 (21:01 +0000)
cmd/smyrna/tvnodes.c

index 83df3f058b25b278413a8eaf42462124e3e1a452..ba5ab525ed2bcc17bef569284ed5af5232d894cd 100755 (executable)
@@ -141,51 +141,6 @@ int validate_node(tv_node * TV_Node)
 
     if (TV_Nodes.filtered) {
        int valid = 1;
-       if ((MP_Flag == 1) || (!n)) {
-           n = tree_from_filter_string(TV_Nodes.filter.filter_string);
-           MP_Flag = 0;
-           buf =
-               agget(view->Topview->Nodes[TV_Node->index].Node,
-                     data_attr1);
-           if (buf) {
-               if (strcmp(TV_Nodes.filter.min_data1, buf))
-                   valid = 0;
-           }
-       }
-       if (data_attr1 && strlen(TV_Nodes.filter.max_data1)
-           && agget(view->Topview->Nodes[TV_Node->index].Node,
-                    data_attr1)) {
-           if (strcmp
-               (agget
-                (view->Topview->Nodes[TV_Node->index].Node, data_attr1),
-                TV_Nodes.filter.min_data1))
-               valid = 0;
-       }
-       //string data checks attr2
-       if (data_attr2 && strlen(TV_Nodes.filter.min_data2)
-           && agget(view->Topview->Nodes[TV_Node->index].Node,
-                    data_attr2)) {
-           if (strcmp
-               (TV_Nodes.filter.min_data2,
-                agget(view->Topview->Nodes[TV_Node->index].Node,
-                      data_attr2)))
-               valid = 0;
-       }
-       if (data_attr2 && strlen(TV_Nodes.filter.max_data2)
-           && agget(view->Topview->Nodes[TV_Node->index].Node,
-                    data_attr2)) {
-
-           if (strcmp
-               (agget
-                (view->Topview->Nodes[TV_Node->index].Node, data_attr2),
-                TV_Nodes.filter.min_data2))
-               valid = 0;
-
-       }
-       if (strlen(TV_Nodes.filter.filter_string) > 0)
-           valid = evaluate_expresions(TV_Node, n);
-       //if show only highlighted 
-       //if show only visibles
        if (TV_Nodes.filter.visible >= 0) {
            if (view->Topview->Nodes[TV_Node->index].data.Visible !=
                TV_Nodes.filter.visible)