build: comment out unused functions 18/225218/2
authorYeongjong Lee <yj34.lee@samsung.com>
Tue, 18 Feb 2020 07:16:27 +0000 (16:16 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 18 Feb 2020 21:38:00 +0000 (21:38 +0000)
@tizen_fix
Change-Id: I28cee3b69b7977a2a917e2dc9b1ceb27fd2af96d

src/lib/edje/edje_textblock.c
src/lib/elementary/efl_ui_clock.c
src/lib/elementary/efl_ui_widget.c
src/lib/elementary/elm_focus_legacy.c
src/lib/elementary/elm_gengrid.c
src/lib/elementary/elm_priv.h
src/lib/evas/canvas/evas_image_legacy.c

index 602f67a0a61a7f8100f5449fa43a892a3ee2bfc6..eb1ad6bcfe26bddb6841bbe9e46d57fd31ff3294 100644 (file)
@@ -7,6 +7,8 @@
  * To keep backward compatibility, it will be used for old version of EDJ files.
  * You can't see proper min/max result accroding to documents with this function.
  */
+//TIZEN_ONLY(20200217): comment out unused function
+#if 0
 static void
 _edje_part_recalc_single_textblock_min_max_calc_legacy(Edje_Real_Part *ep,
                                                        Edje_Part_Description_Text *chosen_desc,
@@ -88,6 +90,7 @@ _edje_part_recalc_single_textblock_min_max_calc_legacy(Edje_Real_Part *ep,
           }
      }
 }
+#endif
 
 static void
 _edje_part_recalc_single_textblock_min_max_calc(Edje_Real_Part *ep,
index 9e6bf2e8e91d96978b253868d1b3dfecf1c208ef..6d9e939e60727d459105d317d842d2de0c1d7a66 100644 (file)
@@ -1029,6 +1029,8 @@ _access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
    return ret;
 }
 
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static Eina_Bool
 _ticker(void *data)
 {
@@ -1059,6 +1061,7 @@ _ticker(void *data)
 
    return ECORE_CALLBACK_CANCEL;
 }
+*/
 
 EOLIAN static void
 _efl_ui_clock_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Clock_Data *priv)
index 0042bbce8234a849125b2f035c993e46c0279e9d..a97b8c124b79f9940d11eda0ac446e870adf014d 100644 (file)
@@ -337,6 +337,8 @@ _efl_ui_widget_focus_highlight_object_get(const Evas_Object *obj)
    return _elm_win_focus_highlight_object_get(top);
 }
 
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static Eina_Bool
 _legacy_focus_eval(Eo *obj)
 {
@@ -367,9 +369,11 @@ _legacy_focus_eval(Eo *obj)
 
    return !efl_isa(top, EFL_UI_WIN_CLASS);
 }
+*/
 
 static void _full_eval(Eo *obj, Elm_Widget_Smart_Data *pd);
-
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static Efl_Ui_Focus_Object*
 _focus_manager_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
 {
@@ -398,6 +402,7 @@ _focus_manager_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
 
    return old;
 }
+*/
 
 EOLIAN static Eina_Bool
 _efl_ui_widget_focus_state_apply(Eo *obj, Elm_Widget_Smart_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect)
@@ -453,6 +458,8 @@ _efl_ui_widget_focus_state_apply(Eo *obj, Elm_Widget_Smart_Data *pd EINA_UNUSED,
    );
    return EINA_FALSE;
 }
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static void
 _eval_registration_candidate(Eo *obj, Elm_Widget_Smart_Data *pd, Eina_Bool *should, Eina_Bool *want_full)
 {
@@ -522,9 +529,6 @@ _focus_state_eval(Eo *obj, Elm_Widget_Smart_Data *pd, Eina_Bool should, Eina_Boo
 static Efl_Ui_Focus_Object*
 _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool should, Eina_Bool *state_change_to_parent)
 {
-   //TIZEN_ONLY(20180607): Restore legacy focus
-   return NULL;
-   //
    Efl_Ui_Widget *parent;
    Efl_Ui_Focus_Parent_Provider *provider;
 
@@ -583,6 +587,7 @@ _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool s
      }
    return NULL;
 }
+*/
 
 static void
 _full_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
index 5f02a4b78aba33f52485f6e875a63d17cf0bae7a..82a3624f1092af6e243861d8ed44745fc0121436 100644 (file)
@@ -452,12 +452,14 @@ elm_object_focus_set(Evas_Object *obj,
      }
 }
 
+
+//TIZEN_ONLY(20200217): comment out unused function
 //legacy helpers that are used in code
+/*
 typedef struct {
   Eina_Bool focused;
   Eo *emittee;
 } Legacy_Manager_Focus_State;
-
 static void
 _focus_manager_focused(void *data, const Efl_Event *ev)
 {
@@ -483,9 +485,6 @@ _focus_manager_del(void *data, const Efl_Event *ev EINA_UNUSED)
 void
 legacy_efl_ui_focus_manager_widget_legacy_signals(Efl_Ui_Focus_Manager *manager, Efl_Ui_Focus_Manager *emittee)
 {
-   //TIZEN_ONLY(20180607): disable focus manager stuff
-   return;
-   /*
    Legacy_Manager_Focus_State *state = calloc(1, sizeof(Legacy_Manager_Focus_State));
 
    state->emittee = emittee;
@@ -493,8 +492,6 @@ legacy_efl_ui_focus_manager_widget_legacy_signals(Efl_Ui_Focus_Manager *manager,
 
    efl_event_callback_add(manager, EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED, _focus_manager_focused, state);
    efl_event_callback_add(manager, EFL_EVENT_DEL, _focus_manager_del, state);
-   */
-   //
 }
 
 typedef struct {
@@ -532,17 +529,11 @@ _manager_focus_object_changed(void *data, const Efl_Event *ev EINA_UNUSED)
 void
 legacy_child_focus_handle(Efl_Ui_Focus_Object *object)
 {
-   //TIZEN_ONLY(20180607): disable focus manager stuff
-   return;
-
-   /*
    Legacy_Object_Focus_State *state = calloc(1, sizeof(Legacy_Object_Focus_State));
    state->emittee = object;
 
    efl_event_callback_add(object, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED, _manager_focus_object_changed, state);
    efl_event_callback_add(object, EFL_EVENT_DEL, _focus_manager_del, state);
-   */
-   //
 }
 
 static void
@@ -557,10 +548,7 @@ _focus_event_changed(void *data EINA_UNUSED, const Efl_Event *event)
 void
 legacy_object_focus_handle(Efl_Ui_Focus_Object *object)
 {
-   //TIZEN_ONLY(20180607): disable focus manager stuff
-   return;
-   /*
    efl_event_callback_add(object, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED, _focus_event_changed, NULL);
-   */
-   //// END
 }
+*/
+//// END
index 46191aedbbbcc2f6469ada15e4d1eec1b92f77df..2fd48ba43904408c193c68f6d3ef0bea15dd53be 100755 (executable)
@@ -112,7 +112,9 @@ static Eina_Bool _key_action_escape(Evas_Object *obj, const char *params);
 static void _item_position_update(Eina_Inlist *list, int idx);
 static void _item_mouse_callbacks_add(Elm_Gen_Item *it, Evas_Object *view);
 static void _item_mouse_callbacks_del(Elm_Gen_Item *it, Evas_Object *view);
-static void _calc_job(void *data);
+//TIZEN_ONLY(20160511) : Remove job for fixing calculate timing issue.
+//static void _calc_job(void *data);
+//
 // TIZEN_ONLY (20151009) : Accessibility: updated highlight change during gengrid scroll
 static int _is_item_in_viewport(int viewport_x, int viewport_y, int viewport_w, int viewport_h,
                                 int obj_x, int obj_y, int obj_w, int obj_h);
@@ -3866,7 +3868,8 @@ _item_horizontal_loop(Evas_Object *obj, Elm_Focus_Direction dir)
  * transform the focus direction so it can be used for deciding in which direction to go on the internal data structure
  * This is respecting the horizontal
  */
-
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static Elm_Focus_Direction
 _direction_transform_horizontal(Elm_Gengrid_Data *sd, Elm_Focus_Direction dir)
 {
@@ -4052,6 +4055,7 @@ _item_multi_select(Elm_Gengrid_Data *sd, Elm_Focus_Direction direction)
    else if (direction == ELM_FOCUS_LEFT) return _item_multi_select_left(sd);
    return EINA_FALSE;
 }
+*/
 
 static Eina_Bool
 _key_action_move(Evas_Object *obj, const char *params)
index e481a45156f937353e97209cb8c3a05754303a57..1474f9e9c9f5816808267e1f11fbf28e99865231 100644 (file)
@@ -1098,6 +1098,10 @@ int tizen_util_probe_profile_wearable();
 
 //TIZEN_ONLY(20191021): disable focus manager
 #define efl_ui_focus_object_focus_get elm_widget_focus_get
+#define legacy_object_focus_handle(obj) do {} while(0)
+#define legacy_child_focus_handle(obj) do {} while(0)
+#define legacy_efl_ui_focus_manager_widget_legacy_signals(mgr, obj) do {} while(0)
+
 
 /***********************************************************************************
  * TIZEN_ONLY_FEATURE: apply Tizen's color_class features.                         *
index 3b87d7486d5207fe7d8d1601360c17694ce6e3f9..ede4895eff47754acb1a670a80007f019ef5aba3 100755 (executable)
@@ -737,6 +737,8 @@ evas_object_image_data_set(Eo *eo_obj, void *data)
    if (resize_call) evas_object_inform_call_image_resize(eo_obj);
 }
 
+//TIZEN_ONLY(20200217): comment out unused function
+/*
 static void
 _image_to_free_del_cb(void *data)
 {
@@ -748,6 +750,7 @@ _image_to_free_del_cb(void *data)
    ENFN->image_free(ENC, px_entry->image);
    free(px_entry);
 }
+*/
 
 EAPI void*
 evas_object_image_data_get(const Eo *eo_obj, Eina_Bool for_writing)