[gegl] Made gegl_node_get_depends on static



commit a3817b513894b8ba4e0c0ed84655fd7f0312f1c6
Author: �yvind Kolås <pippin gimp org>
Date:   Tue Nov 24 21:57:44 2009 +0000

    Made gegl_node_get_depends on static
    
    This is internal API so also removed typecheck to remove some overhead.

 gegl/graph/gegl-node.c |    7 +------
 gegl/graph/gegl-node.h |    1 -
 2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index bf8dcf1..c471ca2 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -1064,14 +1064,12 @@ gegl_node_blit (GeglNode            *self,
     }
 }
 
-GSList *
+static GSList *
 gegl_node_get_depends_on (GeglNode *self)
 {
   GSList *depends_on = NULL;
   GSList *llink;
 
-  g_return_val_if_fail (GEGL_IS_NODE (self), NULL);
-
   for (llink = self->priv->source_connections; llink; llink = g_slist_next (llink))
     {
       GeglConnection *connection = llink->data;
@@ -1803,9 +1801,6 @@ gegl_node_get_context (GeglNode *self,
   g_mutex_lock (self->mutex);
 #endif
 
-  g_return_val_if_fail (GEGL_IS_NODE (self), NULL);
-  g_return_val_if_fail (context_id != NULL, NULL);
-
   context = g_hash_table_lookup (self->priv->contexts, context_id);
 #if ENABLE_MT
   g_mutex_unlock (self->mutex);
diff --git a/gegl/graph/gegl-node.h b/gegl/graph/gegl-node.h
index edde536..1c2bbf7 100644
--- a/gegl/graph/gegl-node.h
+++ b/gegl/graph/gegl-node.h
@@ -154,7 +154,6 @@ gint          gegl_node_get_num_sinks       (GeglNode      *self);
 GeglNode    * gegl_node_get_producer        (GeglNode      *self,
                                              gchar         *pad_name,
                                              gchar        **output_pad);
-GSList      * gegl_node_get_depends_on      (GeglNode      *self);
 void          gegl_node_dump_depends_on     (GeglNode      *self);
 void          gegl_node_set_valist          (GeglNode      *object,
                                              const gchar   *first_property_name,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]