[Tizen] Revert "[Tizen] Disable ATSPI when release or perf image" accepted/tizen/unified/20230906.121326
authorANZ1217 <chihun.jeong@samsung.com>
Tue, 5 Sep 2023 12:17:31 +0000 (21:17 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Tue, 5 Sep 2023 12:17:48 +0000 (21:17 +0900)
This reverts commit a553f480cde07be5352c0b155b71f1dc3eecdae9.

dali/internal/accessibility/bridge/bridge-impl.cpp

index b6cfb41..de479b1 100644 (file)
@@ -46,7 +46,6 @@
 #include <dali/internal/accessibility/bridge/dummy/dummy-atspi.h>
 #include <dali/internal/adaptor/common/adaptor-impl.h>
 #include <dali/internal/system/common/environment-variables.h>
-#include <unistd.h>
 
 using namespace Dali::Accessibility;
 
@@ -871,19 +870,13 @@ std::shared_ptr<Bridge> CreateBridge()
 
   try
   {
-    /* Check environment variable first */
+    /* check environment variable first */
     const char* envAtspiDisabled = Dali::EnvironmentVariable::GetEnvironmentVariable(DALI_ENV_DISABLE_ATSPI);
     if(envAtspiDisabled && std::atoi(envAtspiDisabled) != 0)
     {
       return Dali::Accessibility::DummyBridge::GetInstance();
     }
 
-    // Check if the image is either release or perf mode
-    if((access("/etc/release", F_OK) == 0) || (access("/etc/perf", F_OK) == 0))
-    {
-      return Dali::Accessibility::DummyBridge::GetInstance();
-    }
-
     return std::make_shared<BridgeImpl>();
   }
   catch(const std::exception&)