summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Sansanwal <abhishek.s94@samsung.com>2017-10-24 17:07:33 +0530
committerAbhishek Sansanwal <abhishek.s94@samsung.com>2017-10-24 17:08:05 +0530
commitf4b35aceaccdccc5eb735a098f6399d1781b36b0 (patch)
tree4a2b131b9da5b1c96d23ed82ebf3e284c997aa08
parent16226be75e4eed7c9f7ae163191c47a8623f0492 (diff)
downloadwifi-f4b35aceaccdccc5eb735a098f6399d1781b36b0.tar.gz
wifi-f4b35aceaccdccc5eb735a098f6399d1781b36b0.tar.bz2
wifi-f4b35aceaccdccc5eb735a098f6399d1781b36b0.zip
Remove unused functions
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com> Change-Id: I9d95ad5961d4a8bb3e7ad749caef2c993bd2816f
-rw-r--r--sources/wearable/src/wearable-circle/view/layout_proxy_setting_add.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/sources/wearable/src/wearable-circle/view/layout_proxy_setting_add.c b/sources/wearable/src/wearable-circle/view/layout_proxy_setting_add.c
index 3d565e8..fcfd6d0 100644
--- a/sources/wearable/src/wearable-circle/view/layout_proxy_setting_add.c
+++ b/sources/wearable/src/wearable-circle/view/layout_proxy_setting_add.c
@@ -81,30 +81,6 @@ static char *__manual_text_get_cb(void *data, Evas_Object *obj, const char *part
return g_strdup(STR_MANUAL);
}
-static Evas_Object *__checkbox_content_get_cb(void *data, Evas_Object *obj,
- const char *part)
-{
- if (!g_strcmp0(part, "elm.icon")) {
- layout_proxy_setting_add_item_object *id = data;
- WIFI_RET_VAL_IF_FAIL(id != NULL, NULL);
-
- id->checkbox = elm_check_add(obj);
- elm_object_style_set(id->checkbox, "on&off/list");
- elm_check_state_set(id->checkbox, id->is_auto);
- elm_access_object_unregister(id->checkbox);
- evas_object_propagate_events_set(id->checkbox, EINA_FALSE);
- evas_object_size_hint_weight_set(id->checkbox,
- EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(id->checkbox,
- EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_smart_callback_add(id->checkbox, "changed",
- id->tap, id);
-
- evas_object_show(id->checkbox);
- return id->checkbox;
- }
- return NULL;
-}
static Evas_Object *__content_get_cb(void *data, Evas_Object *obj,
const char *part)
{
@@ -194,33 +170,6 @@ static void __item_del_cb(void *data, Evas_Object *obj, void *event_info)
g_free(id);
}
-static Elm_Object_Item *_checkbox_append_1text1icon_menu(layout_proxy_setting_add_object *self,
- proxy_setting_add_menu_type menu_type,
- Elm_Gen_Item_Text_Get_Cb text_get_cb)
-{
- Elm_Genlist_Item_Class *itc = create_genlist_itc("1text.1icon.1",
- text_get_cb, __checkbox_content_get_cb, NULL, NULL);
- Elm_Object_Item *item;
- layout_proxy_setting_add_item_object *id;
- WIFI_RET_VAL_IF_FAIL(itc != NULL, FALSE);
-
- id = g_new0(layout_proxy_setting_add_item_object, 1);
- if (id == NULL) {
- WIFI_LOG_ERR("Item data create failed.");
- elm_genlist_item_class_free(itc);
- return NULL;
- }
-
- item = elm_genlist_item_append(self->menu_list, itc,
- id, NULL, ELM_GENLIST_ITEM_NONE,
- self->menu_cb[menu_type].tap, id);
- elm_genlist_item_class_free(itc);
- elm_object_item_del_cb_set(item, __item_del_cb);
- id->menu_data = self->menu_cb[menu_type].data;
- id->tap = self->menu_cb[menu_type].tap;
- id->is_auto = self->is_auto;
- return item;
-}
static Elm_Object_Item *_append_1text1icon_menu(layout_proxy_setting_add_object *self,
proxy_setting_add_menu_type menu_type,
Elm_Gen_Item_Text_Get_Cb text_get_cb, int index)
@@ -444,11 +393,6 @@ void layout_proxy_setting_add_append_manual_menus(layout_proxy_setting_add_objec
if (self->menu_item[PROXY_SETTING_ADD_MENU_PORT] == NULL)
WIFI_LOG_ERR("append proxy port failed.");
-/* self->menu_item[PROXY_SETTING_ADD_MENU_AUTO] = _checkbox_append_1text1icon_menu(self,
- PROXY_SETTING_ADD_MENU_AUTO, __auto_text_get_cb);
- if (self->menu_item[PROXY_SETTING_ADD_MENU_AUTO] == NULL)
- WIFI_LOG_ERR("append proxy port failed.");
-*/
self->menu_item[PROXY_SETTING_ADD_MENU_EMPTY] = _append_padding(self);
if (self->menu_item[PROXY_SETTING_ADD_MENU_EMPTY] == NULL)
WIFI_LOG_ERR("_append_padding() failed.");