ip info: remove obsolete item 21/233721/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 May 2020 12:21:01 +0000 (21:21 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 May 2020 12:21:10 +0000 (21:21 +0900)
Change-Id: I5b34fd4dc01f4a1def51e199d913c8abcb032359

sources/libraries/Common/common_ip_info.c

index 9628e8f..a4c72b8 100755 (executable)
@@ -931,18 +931,13 @@ static void __ip_info_toggle_item_sel_cb(void* data,
                wifi_manager_ap_foreach_ipv6_address(ap, __ap_foreach_ipv6_callback, &ipv6_addr);
 
                /* Dynamic IP Address */
-               ip_info_list_data->ip_addr_item = _add_description(
-                               ip_info_list_data->genlist,
-                               "IDS_WIFI_BODY_IP_ADDRESS",
-                               NULL,
-                               ip_info_list_data->ip_toggle_item);
 
                if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
                        ip_info_list_data->ipv4_addr_item = _add_description(
                                        ip_info_list_data->genlist,
                                        "IDS_ST_BODY_IPV4",
                                        ip_addr,
-                                       ip_info_list_data->ip_addr_item);
+                                       ip_info_list_data->ip_toggle_item);
 
                if (g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)) {
                        if (ip_info_list_data->ipv4_addr_item)
@@ -956,8 +951,7 @@ static void __ip_info_toggle_item_sel_cb(void* data,
                                                ip_info_list_data->genlist,
                                                "IDS_ST_BODY_IPV6",
                                                ipv6_addr,
-                                               ip_info_list_data->ip_addr_item);
-
+                                               ip_info_list_data->ip_toggle_item);
                }
 
                g_free(ip_addr);
@@ -1229,9 +1223,6 @@ full_ip_info_t *ip_info_append_items(wifi_manager_ap_h ap, const char *pkg_name,
 
                prev_ip_info->ip_addr = g_strdup(ip_addr);
 
-               ip_info_list_data->ip_addr_item = _add_description(genlist,
-                               "IDS_WIFI_BODY_IP_ADDRESS", NULL, NULL);
-
                if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
                        ip_info_list_data->ipv4_addr_item = _add_description(genlist,
                                        "IDS_ST_BODY_IPV4", ip_addr, NULL);