[gegl] gegl: Simplify gegl_have_visitor_visit_node()



commit 681ebea8f590f3853b4a82ba172c395608fd5db6
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Jan 23 15:13:54 2010 +0100

    gegl: Simplify gegl_have_visitor_visit_node()
    
    Simplify gegl_have_visitor_visit_node() slightly be getting rid of a
    local variable that is not needed.

 gegl/process/gegl-have-visitor.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gegl/process/gegl-have-visitor.c b/gegl/process/gegl-have-visitor.c
index 28e9cac..e772bd7 100644
--- a/gegl/process/gegl-have-visitor.c
+++ b/gegl/process/gegl-have-visitor.c
@@ -56,7 +56,6 @@ static void
 gegl_have_visitor_visit_node (GeglVisitor *self,
                               GeglNode    *node)
 {
-  GeglRectangle  rect;
   GeglOperation *operation;
   glong          time = gegl_ticks ();
 
@@ -67,9 +66,7 @@ gegl_have_visitor_visit_node (GeglVisitor *self,
 #if ENABLE_MT
   g_mutex_lock (node->mutex);
 #endif
-  rect = gegl_operation_get_bounding_box (operation);
-
-  node->have_rect = rect;
+  node->have_rect = gegl_operation_get_bounding_box (operation);
 #if ENABLE_MT
   g_mutex_unlock (node->mutex);
 #endif



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