Place pre-conditions where they belong
authorturran <turran>
Sat, 23 Aug 2008 19:50:21 +0000 (19:50 +0000)
committerturran <turran@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Aug 2008 19:50:21 +0000 (19:50 +0000)
Remove unused rectangle functions

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eina@35634 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_rectangle.h
src/lib/eina_error.c

index 3373e77..7b478f1 100644 (file)
@@ -83,24 +83,6 @@ eina_rectangles_intersect(Eina_Rectangle *r1, Eina_Rectangle *r2)
  * FIXME: To be fixed
  */
 static inline Eina_Bool
-eina_rectangle_hspan_inside(Eina_Rectangle *r, int x, int l)
-{
-
-}
-/**
- * To be documented
- * FIXME: To be fixed
- */
-static inline Eina_Bool
-eina_rectangle_vspan_inside(Eina_Rectangle *r, int y, int l)
-{
-
-}
-/**
- * To be documented
- * FIXME: To be fixed
- */
-static inline Eina_Bool
 eina_rectangle_xcoord_inside(Eina_Rectangle *r, int x)
 {
        return ((x >= r->x) && (x < (r->x + r->w)));
index 74ef382..705f273 100644 (file)
@@ -144,9 +144,11 @@ EAPI void eina_error_print(Eina_Error_Level level, const char *file,
 {
        va_list args;
 
+       if (level > _error_level)
+               return;
+       
        va_start(args, fmt);
-       if (level <= _error_level)
-               _print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
+       _print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
        va_end(args);
 }
 /**