Revert "[Tizen] Added layout direction change by system language"
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / adaptor-impl-tizen.cpp
index 67afe39..1619139 100644 (file)
@@ -25,8 +25,6 @@
 #include <ecore-wl-render-surface.h>
 #endif
 
-#include <system_settings.h>
-
 namespace Dali
 {
 
@@ -36,30 +34,6 @@ namespace Internal
 namespace Adaptor
 {
 
-namespace
-{
-
-static void OnSystemLanguageChanged( system_settings_key_e key, void* data )
-{
-  char* locale = NULL;
-  if( system_settings_get_value_string( SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale ) != SYSTEM_SETTINGS_ERROR_NONE ||
-      locale == NULL )
-  {
-    DALI_LOG_ERROR( "DALI OnSystemLanguageChanged failed " );
-    return;
-  }
-
-  Adaptor* adaptor = static_cast< Adaptor* >( data );
-  if( adaptor != NULL )
-  {
-    adaptor->SetRootLayoutDirection( locale );
-  }
-
-  free( locale );
-}
-
-} // namesapce
-
 void Adaptor::GetDataStoragePath( std::string& path)
 {
 #ifdef USE_APPFW
@@ -108,28 +82,6 @@ void Adaptor::SurfaceInitialized()
 #endif
 }
 
-void Adaptor::SetupSystemInformation()
-{
-  if( system_settings_set_changed_cb( SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, OnSystemLanguageChanged, this ) != SYSTEM_SETTINGS_ERROR_NONE )
-  {
-    DALI_LOG_ERROR( "DALI system_settings_set_changed_cb failed.\n" );
-    return;
-  }
-
-  char* locale = NULL;
-  if( system_settings_get_value_string( SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale ) != SYSTEM_SETTINGS_ERROR_NONE ||
-      locale == NULL )
-  {
-    DALI_LOG_ERROR( "DALI OnSystemLanguageChanged failed " );
-    return;
-  }
-
-  SetRootLayoutDirection( locale );
-
-  free( locale );
-
-}
-
 } // namespace Adaptor
 
 } // namespace Internal