From 90bb19f006cab4ac1c85d77ac929bc47e104b2a4 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 12 Apr 2022 17:15:07 +0900 Subject: [PATCH] Remove access() call When getting the locale path, the application core checks whether the path exists or not. And, if it does not exist, the function prints the log for debugging. This patch removes it. It makes a delay issue about launching an application at boot up time. Change-Id: I1733f7e293baca052aeac1a48207bd00e5cc2bbc Signed-off-by: Hwankyu Jhun --- legacy/src/base/appcore_base.c | 3 --- tizen-cpp/app-core-cpp/app_core_base.cc | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/legacy/src/base/appcore_base.c b/legacy/src/base/appcore_base.c index bc59c73..40c0b1e 100644 --- a/legacy/src/base/appcore_base.c +++ b/legacy/src/base/appcore_base.c @@ -990,9 +990,6 @@ static int __get_locale_resource_dir(char *locale_dir, int size) } snprintf(locale_dir, size, "%s" PATH_LOCALE, res_path); - if (access(locale_dir, R_OK) != 0) - _DBG("%s does not exist", locale_dir); - return 0; } diff --git a/tizen-cpp/app-core-cpp/app_core_base.cc b/tizen-cpp/app-core-cpp/app_core_base.cc index a2bb1b5..f35293a 100644 --- a/tizen-cpp/app-core-cpp/app_core_base.cc +++ b/tizen-cpp/app-core-cpp/app_core_base.cc @@ -684,11 +684,7 @@ std::string AppCoreBase::Impl::GetLocaleResourceDir() { return ""; } - std::string path = std::string(res_path) + PATH_LOCALE; - if (access(path.c_str(), R_OK) != 0) - _W("%s does not exist", path.c_str()); - - return path; + return std::string(res_path) + PATH_LOCALE; } int AppCoreBase::OnSetI18n() { -- 2.7.4