]> granicus.if.org Git - graphviz/commitdiff
smyrna attr_list_new: remove unused 'g' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Dec 2022 05:06:34 +0000 (21:06 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 19:42:15 +0000 (11:42 -0800)
cmd/smyrna/gui/frmobjectui.c

index 40d6cbe9529cd9c240aeca0578a6fa49f033a793..0cd6cd145f221ff10bc549d06d8b9fcbaa878715 100644 (file)
@@ -141,7 +141,7 @@ static void free_attr_list(attr_list *l) {
 // attr_list is a basic stack implementation
 // with alphanumeric sorting functions
 // that uses quicksort
-static attr_list *attr_list_new(Agraph_t *g, int with_widgets) {
+static attr_list *attr_list_new(int with_widgets) {
     int id;
     attr_list *l = gv_alloc(sizeof(attr_list));
     l->attr_count = 0;
@@ -333,7 +333,7 @@ static void filter_attributes(const char *prefix, topview *t) {
 
     if (fl)
        free_attr_list(fl);
-    fl = attr_list_new(NULL, 0);
+    fl = attr_list_new(0);
     reset_attr_list_widgets(l);
     create_filtered_list(prefix, l, fl);
     for (ind = 0; ind < fl->attr_count; ind++) {
@@ -584,7 +584,7 @@ attr_list *load_attr_list(Agraph_t * g)
     if (!smyrna_attrs)
        smyrna_attrs = smyrnaPath("attrs.txt");
     g = view->g[view->activeGraph];
-    l = attr_list_new(NULL, 1);
+    l = attr_list_new(1);
     file = fopen(smyrna_attrs, "r");
     if (file != NULL) {
        int i = 0;