]> granicus.if.org Git - graphviz/commitdiff
smyrna: make 'attr_list_new' static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Nov 2021 04:46:09 +0000 (20:46 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Nov 2021 00:09:10 +0000 (16:09 -0800)
This function is not used outside of its containing file.

cmd/smyrna/gui/frmobjectui.c
cmd/smyrna/gui/frmobjectui.h

index c11966122c461b224bd9f8dbc3079d8111adc5ff..84df713215b8306e95b7381f0194fa600f8f72f9 100644 (file)
@@ -137,8 +137,12 @@ static void free_attr_list(attr_list *l) {
        free_attr_list_widgets(l);
     free(l);
 }
-attr_list *attr_list_new(Agraph_t * g, int with_widgets)
-{
+
+// creates a new attr_list
+// 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) {
     int id;
     attr_list *l = malloc(sizeof(attr_list));
     l->attr_count = 0;
index 7706d86a32949f0de8dd99f73f26aafec0bad6ee..e50f478f52280542360d0815e7dc69688a3b56aa 100644 (file)
 #include "smyrnadefs.h"
 
 
-/*
-       creates a new attr_list
-       attr_list is a basic stack implementation
-       with alphanumeric sorting functions 
-       that uses quicksort
-
-*/
-
 #define ATTR_NOTEBOOK_IDX 6
 
-extern attr_list* attr_list_new(Agraph_t * g,int with_widgets );
-
 _BB void on_txtAttr_changed(GtkWidget * widget, gpointer user_data);
 _BB void attr_label_motion(GtkWidget * widget,GdkEventMotion * event, gpointer data);
 _BB void on_attrApplyBtn_clicked (GtkWidget * widget, gpointer user_data);