elm_widget.c: Removed unnecessary attributes delete code, As attributes_clear API... 74/161074/2
authorShilpa Singh <shilpa.singh@samsung.com>
Tue, 21 Nov 2017 09:10:35 +0000 (14:40 +0530)
committerShilpa Singh <shilpa.singh@samsung.com>
Wed, 22 Nov 2017 10:36:37 +0000 (16:06 +0530)
Change-Id: I3737086c02c2aaa9733789717af0763e64629188

src/lib/elm_widget.c
src/lib/elm_widget.h

index 83f5f3a4eabb686435fc7a8fb6a879a06a6f3c7e..d6a97e171e452541651ba81281d4e7520e140a83 100644 (file)
@@ -4828,18 +4828,6 @@ _elm_widget_item_eo_base_destructor(Eo *eo_item, Elm_Widget_Item_Data *item)
    if (item->atspi_translation_domain)
      eina_stringshare_del(item->atspi_translation_domain);
    //
-   //Tizen Only(20160728) free attribute list
-   if (item->attr_list)
-   {
-      Elm_Atspi_Attribute *attr;
-      EINA_LIST_FREE(item->attr_list, attr)
-       {
-          eina_stringshare_del(attr->key);
-          eina_stringshare_del(attr->value);
-          free(attr);
-       }
-   }
-   //
 
 //TIZEN_ONLY(20161013): clean up elm color class feature
    if (item->color_classes)
@@ -6298,19 +6286,6 @@ _elm_widget_eo_base_destructor(Eo *obj, Elm_Widget_Smart_Data *sd EINA_UNUSED)
    if (sd->atspi_translation_domain)
      eina_stringshare_del(sd->atspi_translation_domain);
    //
-   //Tizen Only(20160728) free attribute list
-   if (sd->attr_list)
-   {
-      Elm_Atspi_Attribute *attr;
-      EINA_LIST_FREE(sd->attr_list, attr)
-       {
-          eina_stringshare_del(attr->key);
-          eina_stringshare_del(attr->value);
-          free(attr);
-       }
-   }
-   //
-
    eo_do_super(obj, ELM_WIDGET_CLASS, eo_destructor());
    sd->on_destroy = EINA_FALSE;
 
index 910407296a5776bd0b9155b23d09d2609b4561c7..c5d5f07c229b78109d6494ce6907c8974ee466e3 100644 (file)
@@ -426,10 +426,6 @@ typedef struct _Elm_Widget_Smart_Data
    //TIZEN_ONLY(20150731) : add i18n support for name and description
    const char                   *atspi_translation_domain;
    ///
-   //TIZEN_ONLY(20160725): Add attributes set function and store the list
-   Eina_List                    *attr_list;
-   //
-
    /* this is a hook to be set on-the-fly on widgets. this is code
     * handling the request of showing a specific region from an inner
     * widget (mainly issued by entries, on cursor moving) */
@@ -687,9 +683,6 @@ struct _Elm_Widget_Item_Data
    Elm_Atspi_Relation_Set        atspi_custom_relations; /**< Developer-defined accessiblity relations */
    ///////////////////////////////////
    const char                    *name;
-   //TIZEN_ONLY(20160725): Add attributes set function and store the list
-   Eina_List                    *attr_list;
-   //
    //TIZEN_ONLY(20150731) : add i18n support for name and description
    const char                    *atspi_translation_domain;
    ///