summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-13 18:53:33 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-13 18:53:33 +0900
commit680eb0327668e8574b6d027339bf63532e2b9302 (patch)
tree77e4f036bd8a3febdcd1165cef8ba9d5d2d8f0d8
parent6684f416261b096ebe8ee88c4caf91cc6e23fb49 (diff)
ui text: code refactoring
replace unreacheable code with EINA_UNUSED properly
-rw-r--r--src/lib/elementary/efl_ui_internal_text_interactive.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c
index 81cf950..3fd39d1 100644
--- a/src/lib/elementary/efl_ui_internal_text_interactive.c
+++ b/src/lib/elementary/efl_ui_internal_text_interactive.c
@@ -2018,10 +2018,9 @@ _efl_ui_internal_text_interactive_efl_input_text_input_panel_language_set(Eo *ob
2018 2018
2019 2019
2020EOLIAN static Efl_Input_Text_Panel_Language_Type 2020EOLIAN static Efl_Input_Text_Panel_Language_Type
2021_efl_ui_internal_text_interactive_efl_input_text_input_panel_language_get(const Eo *obj, Efl_Ui_Internal_Text_Interactive_Data *en) 2021_efl_ui_internal_text_interactive_efl_input_text_input_panel_language_get(const Eo *obj EINA_UNUSED, Efl_Ui_Internal_Text_Interactive_Data *en)
2022{ 2022{
2023 return en->input_panel_lang; 2023 return en->input_panel_lang;
2024 (void)obj;
2025} 2024}
2026 2025
2027 2026
@@ -2250,10 +2249,9 @@ _efl_ui_internal_text_interactive_efl_input_text_predictable_set(Eo *obj EINA_UN
2250 2249
2251 2250
2252EOLIAN static Eina_Bool 2251EOLIAN static Eina_Bool
2253_efl_ui_internal_text_interactive_efl_input_text_predictable_get(const Eo *obj, Efl_Ui_Internal_Text_Interactive_Data *en) 2252_efl_ui_internal_text_interactive_efl_input_text_predictable_get(const Eo *obj EINA_UNUSED, Efl_Ui_Internal_Text_Interactive_Data *en)
2254{ 2253{
2255 return en->prediction_allow; 2254 return en->prediction_allow;
2256 (void)obj;
2257} 2255}
2258 2256
2259 2257
@@ -2297,8 +2295,6 @@ _efl_ui_internal_text_interactive_efl_input_text_autocapitalization_set(Eo *obj,
2297 2295
2298 if (en->imf_context) 2296 if (en->imf_context)
2299 ecore_imf_context_autocapital_type_set(en->imf_context, (Ecore_IMF_Autocapital_Type)autocapital_type); 2297 ecore_imf_context_autocapital_type_set(en->imf_context, (Ecore_IMF_Autocapital_Type)autocapital_type);
2300
2301 (void)obj;
2302#else 2298#else
2303 (void)obj; 2299 (void)obj;
2304 (void)en; 2300 (void)en;
@@ -2308,17 +2304,15 @@ _efl_ui_internal_text_interactive_efl_input_text_autocapitalization_set(Eo *obj,
2308 2304
2309 2305
2310EOLIAN static Efl_Input_Text_Capitalize_Type 2306EOLIAN static Efl_Input_Text_Capitalize_Type
2311_efl_ui_internal_text_interactive_efl_input_text_autocapitalization_get(const Eo *obj, Efl_Ui_Internal_Text_Interactive_Data *en) 2307_efl_ui_internal_text_interactive_efl_input_text_autocapitalization_get(const Eo *obj EINA_UNUSED, Efl_Ui_Internal_Text_Interactive_Data *en)
2312{ 2308{
2313#ifdef HAVE_ECORE_IMF 2309#ifdef HAVE_ECORE_IMF
2314 if (en->imf_context) 2310 if (en->imf_context)
2315 return (Efl_Input_Text_Capitalize_Type)ecore_imf_context_autocapital_type_get(en->imf_context); 2311 return (Efl_Input_Text_Capitalize_Type)ecore_imf_context_autocapital_type_get(en->imf_context);
2316 return EFL_INPUT_TEXT_CAPITALIZE_TYPE_NONE; 2312 return EFL_INPUT_TEXT_CAPITALIZE_TYPE_NONE;
2317 (void)obj;
2318#else 2313#else
2319 return EFL_INPUT_TEXT_CAPITALIZE_TYPE_NONE;
2320 (void)obj;
2321 (void)en; 2314 (void)en;
2315 return EFL_INPUT_TEXT_CAPITALIZE_TYPE_NONE;
2322#endif 2316#endif
2323} 2317}
2324 2318