Remove access() call 80/273680/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Apr 2022 08:15:07 +0000 (17:15 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 12 Apr 2022 22:17:08 +0000 (22:17 +0000)
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 <h.jhun@samsung.com>
legacy/src/base/appcore_base.c
tizen-cpp/app-core-cpp/app_core_base.cc

index bc59c73..40c0b1e 100644 (file)
@@ -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;
 }
 
index a2bb1b5..f35293a 100644 (file)
@@ -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() {