ector: there is no need for bounds get to return a Eina_Bool.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:38:06 +0000 (16:38 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:38:06 +0000 (16:38 +0200)
src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c
src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
src/lib/ector/cairo/ector_renderer_cairo_shape.c
src/lib/ector/ector_renderer_generic_base.eo

index e44734c15bcffc4db1099721a1df1131fae5739b..4fb05ceae9066b8f24aa5b2f5235f3d29a375683 100644 (file)
@@ -117,7 +117,7 @@ _ector_renderer_cairo_gradient_linear_ector_renderer_cairo_base_fill(Eo *obj,
    return EINA_TRUE;
 }
 
-static Eina_Bool
+static void
 _ector_renderer_cairo_gradient_linear_ector_renderer_generic_base_bounds_get(Eo *obj,
                                                                              Ector_Renderer_Cairo_Gradient_Linear_Data *pd EINA_UNUSED,
                                                                              Eina_Rectangle *r)
@@ -132,8 +132,6 @@ _ector_renderer_cairo_gradient_linear_ector_renderer_generic_base_bounds_get(Eo
                       bd->generic->origin.y + gld->start.y,
                       gld->end.x - gld->start.x,
                       gld->end.y - gld->start.x);
-
-   return EINA_TRUE;
 }
 
 void
index 1f4ac8e6cf7357aa2b4ae5282dae16bb4a59a144..f3332c76db465737ac28049b9d683d35146e23e0 100644 (file)
@@ -122,7 +122,7 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_cairo_base_fill(Eo *obj, Ec
    return EINA_TRUE;
 }
 
-static Eina_Bool
+static void
 _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_bounds_get(Eo *obj EINA_UNUSED,
                                                                              Ector_Renderer_Cairo_Gradient_Radial_Data *pd EINA_UNUSED,
                                                                              Eina_Rectangle *r)
@@ -136,8 +136,6 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_bounds_get(Eo
                       bd->generic->origin.x + gld->radial.x - gld->radius,
                       bd->generic->origin.y + gld->radial.y - gld->radius,
                       gld->radius * 2, gld->radius * 2);
-
-   return EINA_TRUE;
 }
 
 void
index 055d2447ff4dd22985fc1d627efdbfab099e3218..e4706ea7100bbac5320c3d7b0c08d64ac4710282 100644 (file)
@@ -220,7 +220,7 @@ _ector_renderer_cairo_shape_ector_renderer_cairo_base_fill(Eo *obj EINA_UNUSED,
    return EINA_FALSE;
 }
 
-static Eina_Bool
+static void
 _ector_renderer_cairo_shape_ector_renderer_generic_base_bounds_get(Eo *obj,
                                                                    Ector_Renderer_Cairo_Shape_Data *pd EINA_UNUSED,
                                                                    Eina_Rectangle *r)
@@ -233,8 +233,6 @@ _ector_renderer_cairo_shape_ector_renderer_generic_base_bounds_get(Eo *obj,
    bd = eo_data_scope_get(obj, ECTOR_RENDERER_CAIRO_BASE_CLASS);
    r->x += bd->generic->origin.x;
    r->y += bd->generic->origin.y;
-
-   return EINA_TRUE;
 }
 
 void
index 38d6bef0ccc03dfb4b312182ebb4e9c727a6d08a..e82b0223f970f7eebc298eee057bddd8a03c0a7a 100644 (file)
@@ -86,7 +86,6 @@ abstract Ector.Renderer.Generic.Base (Eo.Base)
    }
    methods {
       bounds_get {
-         return: bool @warn_unused;
         params {
            @out Eina_Rectangle r;
         }