* evas: Remove duplicated code.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Feb 2010 15:10:05 +0000 (15:10 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Feb 2010 15:10:05 +0000 (15:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@46466 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_draw_main.c

index 2fbce2d..581e397 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "evas_common.h"
 #include "evas_convert_main.h"
+#include "evas_private.h"
 
 EAPI Cutout_Rects*
 evas_common_draw_context_cutouts_new(void)
@@ -24,27 +25,6 @@ evas_common_draw_context_cutouts_free(Cutout_Rects* rects)
    rects->active = 0;
 }
 
-static Cutout_Rect*
-evas_common_draw_context_cutouts_add(Cutout_Rects* rects,
-                                     int x, int y, int w, int h)
-{
-   Cutout_Rect* rect;
-
-   rects->active++;
-   if (rects->max < rects->active)
-     {
-       rects->max += 1024;
-       rects->rects = realloc(rects->rects, sizeof(Cutout_Rect) * rects->max);
-     }
-   rect = rects->rects + rects->active - 1;
-   rect->x = x;
-   rect->y = y;
-   rect->w = w;
-   rect->h = h;
-
-   return rect;
-}
-
 EAPI void
 evas_common_draw_context_cutouts_del(Cutout_Rects* rects,
                                      int index)