[gegl] operation: avoid warning when gegl_operation_get_format returns NULL



commit 3d6301e1c11f70b9cd742139bb99c73bcbf5be85
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Sat Nov 24 16:48:35 2012 +1100

    operation: avoid warning when gegl_operation_get_format returns NULL
    
    Fixes to propagating formats correctly through the gegl:load meta-op causes
    NULL to be returned. (perhaps the loaders doing so should be fixed properly
    instead, so that they get a cache and resulting GeglBuffer with the correct
    BablFormat?)

 gegl/operation/gegl-operation.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index 12fc7cf..5075011 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -478,10 +478,6 @@ gegl_operation_get_format (GeglOperation *self,
 
   pad = gegl_node_get_pad (self->node, pad_name);
 
-  if (pad == NULL || pad->format == NULL)
-    {
-      g_warning ("%s: returns NULL", G_STRFUNC);
-    }
   g_return_val_if_fail (pad != NULL, NULL);
 
   return pad->format;



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