demo: remove autofill testcases due to deprecated autofill enums 89/222989/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 22 Jan 2020 02:38:59 +0000 (11:38 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 22 Jan 2020 02:49:56 +0000 (11:49 +0900)
Change-Id: Id6f1edf80f804634bd1fb856fe6ce6a550385114
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/demos/isf_prediction_hint_efl.cpp

index 507dcb6..28a4785 100644 (file)
@@ -33,22 +33,6 @@ struct _autofill_item {
     Elm_Input_Panel_Layout layout;
 };
 
-static struct _autofill_item autofill_test_itsc[] = {
-    { N_("Name"), N_("click to enter"), "name", ELM_INPUT_HINT_AUTOFILL_NAME, ELM_INPUT_PANEL_LAYOUT_NORMAL },
-    { N_("Email"), N_("click to enter"), "email", ELM_INPUT_HINT_AUTOFILL_EMAIL_ADDRESS, ELM_INPUT_PANEL_LAYOUT_EMAIL },
-    { N_("Address"), N_("click to enter"), "address", ELM_INPUT_HINT_AUTOFILL_POSTAL_ADDRESS, ELM_INPUT_PANEL_LAYOUT_NORMAL },
-    { N_("Phone"), N_("click to enter"), "phone", ELM_INPUT_HINT_AUTOFILL_PHONE, ELM_INPUT_PANEL_LAYOUT_PHONENUMBER },
-    { N_("ID"), N_("click to enter"), "id", ELM_INPUT_HINT_AUTOFILL_ID, ELM_INPUT_PANEL_LAYOUT_NORMAL },
-    { N_("Card Number"), N_("click to enter"), "card_number", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_NUMBER, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-    { N_("Card Expiration date"), N_("click to enter"), "card_expiration_date", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DATE, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-    { N_("Card Expiration day"), N_("click to enter"), "card_expiration_day", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DAY, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-    { N_("Card Expiration month"), N_("click to enter"), "card_expiration_month", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_MONTH, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-    { N_("Card Expiration year"), N_("click to enter"), "card_expiration_year", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_YEAR, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-
-    /* do not delete below */
-    { NULL, NULL, NULL, ELM_INPUT_HINT_AUTOFILL_NAME, ELM_INPUT_PANEL_LAYOUT_NORMAL }
-};
-
 static Evas_Object *_create_ef_layout (Evas_Object *parent, const char *label, const char *guide_text, const char *prediction_hint, const char *res_id, Elm_Input_Hints input_hints = ELM_INPUT_HINT_NONE, Elm_Input_Panel_Layout layout = ELM_INPUT_PANEL_LAYOUT_NORMAL)
 {
     Evas_Object *en;
@@ -78,7 +62,6 @@ static Evas_Object * create_inner_layout (void *data)
     Evas_Object *bx = NULL;
     Evas_Object *ef = NULL;
     Evas_Object *parent = ad->naviframe;
-    unsigned int idx = 0;
 
     bx = elm_box_add (parent);
     evas_object_size_hint_weight_set (bx, EVAS_HINT_EXPAND, 0.0);
@@ -96,14 +79,6 @@ static Evas_Object * create_inner_layout (void *data)
     ef = _create_ef_layout (parent, _("Text: What's the weather?"), _("click to enter"), prediction_hint, NULL);
     elm_box_pack_end (bx, ef);
 
-    /* Autofill test */
-    while (autofill_test_itsc[idx].name != NULL) {
-        ef = _create_ef_layout (parent, autofill_test_itsc[idx].name, autofill_test_itsc[idx].guide_text, NULL,
-                                autofill_test_itsc[idx].res_id, autofill_test_itsc[idx].autofill_hint, autofill_test_itsc[idx].layout);
-        elm_box_pack_end (bx, ef);
-        ++idx;
-    }
-
     return bx;
 }