e_comp_object: remove e_comp_object_util_center 88/318988/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 31 Jan 2025 06:34:50 +0000 (15:34 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 3 Feb 2025 02:06:13 +0000 (11:06 +0900)
e_comp_object_util_center is useless.

Change-Id: I091d041c2b3c87a312ff642fc3ca583aa294a044

src/bin/compmgr/e_comp_object.c
src/bin/compmgr/e_comp_object_intern.h

index 140aaa6cc7c0ff025c009d4f7527defa41868ac7..816d9f8e07306cad05e4cd38eadae96d17a6afb9 100644 (file)
@@ -2788,26 +2788,6 @@ e_comp_object_util_zone_get(Evas_Object *obj)
    return zone;
 }
 
-EINTERN void
-e_comp_object_util_center(Evas_Object *obj)
-{
-   int x, y, w, h, ow, oh;
-   E_Zone *zone;
-
-   SOFT_ENTRY();
-
-   zone = e_comp_object_util_zone_get(obj);
-   EINA_SAFETY_ON_NULL_RETURN(zone);
-   e_zone_useful_geometry_get(zone, &x, &y, &w, &h);
-   if (cw && (cw->ec->changes.size || cw->ec->new_client))
-     ow = cw->ec->w, oh = cw->ec->h;
-   else
-     evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
-   x = x + (w - ow) / 2;
-   y = y + (h - oh) / 2;
-   evas_object_move(obj, x, y);
-}
-
 EINTERN void
 e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on)
 {
index 8a8871eb2d334cae07afb10d2c58fc4441da680b..1f7c1446f6c0e371511e0794457a4a4c4bf41b2e 100644 (file)
@@ -197,7 +197,6 @@ EINTERN E_Zone   *e_comp_object_util_zone_get(Evas_Object *obj);
 EINTERN void      e_comp_object_util_del_list_append(Evas_Object *obj, Evas_Object *to_del);
 EINTERN void      e_comp_object_util_del_list_remove(Evas_Object *obj, Evas_Object *to_del);
 EINTERN void      e_comp_object_util_autoclose(Evas_Object *obj, E_Comp_Object_Autoclose_Cb del_cb, E_Comp_Object_Key_Cb cb, const void *data);
-EINTERN void      e_comp_object_util_center(Evas_Object *obj);
 EINTERN void      e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on);
 EINTERN void      e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y);
 EINTERN void      e_comp_object_util_fullscreen(Evas_Object *obj);