[AT-SPI] Remove redundant code 08/244908/10
authorArtur Świgoń <a.swigon@samsung.com>
Fri, 25 Sep 2020 15:56:20 +0000 (17:56 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 23 Oct 2020 13:01:46 +0000 (15:01 +0200)
Change-Id: Id090e5d24a1cc375e6457f06bca5eff79dc4f39d

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

index b8ef11d..8168c0c 100644 (file)
@@ -156,9 +156,6 @@ static bool AcceptObject( Component* obj )
     return false;
   if ( !AcceptObjectCheckRelations( obj ) )
     return false;
-  //   if (CALL(get_object_in_relation_by_type, obj, ATSPI_RELATION_CONTROLLED_BY) != NULL) return 0;
-  if ( !AcceptObjectCheckRelations( obj ) )
-    return false;
   if( !states[State::HIGHLIGHTABLE] )
     return false;
 
@@ -359,14 +356,6 @@ DBus::ValueOrError< Accessible*, uint8_t, Accessible* > BridgeAccessible::GetNav
   bool recurse = false;
   if( component )
   {
-    const auto states = component->GetStates();
-    if( states[State::MODAL] )
-    {
-      component = nullptr;
-    }
-  }
-  if( component )
-  {
     recurse = component->IsProxy();
   }
   //TODO: add deputy