Revert r52345
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Sep 2010 06:29:47 +0000 (06:29 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Sep 2010 06:29:47 +0000 (06:29 +0000)
This function is not needed at all, and as of now it's borken. Coming patches
will properly fix coords on events.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52398 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Evas.h
src/lib/canvas/evas_object_main.c

index 052cae5..d133474 100644 (file)
@@ -875,7 +875,6 @@ typedef void      (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t
    EAPI void              evas_object_move                  (Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
    EAPI void              evas_object_resize                (Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
    EAPI void              evas_object_geometry_get          (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
-   EAPI Eina_Bool         evas_object_inside_get            (const Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
 
    EAPI void              evas_object_show                  (Evas_Object *obj) EINA_ARG_NONNULL(1);
    EAPI void              evas_object_hide                  (Evas_Object *obj) EINA_ARG_NONNULL(1);
index 4c6e29f..134c417 100644 (file)
@@ -620,46 +620,6 @@ evas_object_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, E
    if (h) *h = obj->cur.geometry.h;
 }
 
-/* If an evas object does not use any transformation it's much easier to know
- * if a point is within its bounds. This internal function is used by
- * evas_object_inside_get() that makes the proper checks to see if the given
- * evas object can use this version or a more elaborated one is needed.
- */
-static inline Eina_Bool
-_evas_object_unmapped_inside_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y)
-{
-   return ((x >= obj->cur.geometry.x) && (y >= obj->cur.geometry.y) &&
-           (x < (obj->cur.geometry.x + obj->cur.geometry.w)) &&
-           (y < (obj->cur.geometry.y + obj->cur.geometry.h)));
-}
-
-/**
- * Check if a certain point is inside of a rectangular evas object.
- *
- * This function takes into account if the given evas object suffered any
- * transformation by means of evas_map_* functions.
- *
- * @param obj The given evas object.
- * @param   x   X coordinate of the point to check for.
- * @param   y   Y coordinate of the point to check for.
- * @ngroup Evas_Object_Group_Basic
- */
-EAPI Eina_Bool
-evas_object_inside_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y)
-{
-   MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
-   return EINA_FALSE;
-   MAGIC_CHECK_END();
-
-   if (obj->delete_me)
-      return EINA_FALSE;
-
-   if ((obj->cur.map) && (obj->cur.map->count == 4) && (obj->cur.usemap))
-      return evas_map_inside_get(obj->cur.map, x, y);
-
-   return _evas_object_unmapped_inside_get(obj, x, y);
-}
-
 /**
  * @addtogroup Evas_Object_Group_Size_Hints
  * @{