From 401706351d38cbfd6fa7e677af387400a888932a Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Wed, 21 Sep 2016 16:49:12 +0900 Subject: [PATCH] elm_atspi: remove redundant null checking 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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c index fbb08a3..c6c1b77 100644 --- a/src/lib/elementary/elm_atspi_bridge.c +++ b/src/lib/elementary/elm_atspi_bridge.c @@ -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); -- 2.7.4