elm_atspi: remove redundant null checking
authorThiep Ha <thiepha@gmail.com>
Wed, 21 Sep 2016 07:49:12 +0000 (16:49 +0900)
committerThiep Ha <thiepha@gmail.com>
Wed, 21 Sep 2016 08:03:14 +0000 (17:03 +0900)
The type is always _ADDED or _REMOVED, therefore atspi_desc
is always "add" or "remove"; no need to have null checking for it.

src/lib/elementary/elm_atspi_bridge.c

index fbb08a3..c6c1b77 100644 (file)
@@ -3968,12 +3968,6 @@ _children_changed_signal_send(void *data, const Efl_Event *event)
         break;
     }
 
-   if (!atspi_desc)
-     {
-        efl_event_callback_stop(event->object);
-        return;
-     }
-
    _bridge_signal_send(data, event->object, ATSPI_DBUS_INTERFACE_EVENT_OBJECT,
                        &_event_obj_signals[ATSPI_OBJECT_EVENT_CHILDREN_CHANGED], atspi_desc,
                        idx, 0, "(so)", eldbus_connection_unique_name_get(pd->a11y_bus), ev_data->child);