From edda399f24841b4fa6d59b7981f262e66a20dee9 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Mon, 8 Jul 2024 10:22:21 +0900 Subject: [PATCH] Remove unreached source code Change-Id: I043c3881bfb43e5d71308c6cb3020d45483aab9e Signed-off-by: JinWang An --- i18ninfo/i18ninfo.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/i18ninfo/i18ninfo.cpp b/i18ninfo/i18ninfo.cpp index e4c0136..00711b8 100644 --- a/i18ninfo/i18ninfo.cpp +++ b/i18ninfo/i18ninfo.cpp @@ -1750,7 +1750,6 @@ void testPluralRules(char *input) void showDatentimeFormat(char *locale) { - int ret = 0; int i = 0; int loc_count; @@ -1761,20 +1760,14 @@ void showDatentimeFormat(char *locale) printf("\n== Show Date basic format"); printf("\n****************************************"); printf("\n - locales : %s\n", default_locale); - ret = __get_date_basic_format(); - if (ret == -1) { - printf("get i18n date and time basic format list failed\n"); - } + __get_date_basic_format(); } } else { default_locale = locale; printf("\n== Show Date basic format"); printf("\n****************************************"); printf("\n - locales : %s\n", default_locale); - ret = __get_date_basic_format(); - if (ret == -1) { - printf("get i18n date and time basic format list failed\n"); - } + __get_date_basic_format(); } } -- 2.34.1