summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2016-09-21 16:49:12 +0900
committerThiep Ha <thiepha@gmail.com>2016-09-21 17:03:14 +0900
commit401706351d38cbfd6fa7e677af387400a888932a (patch)
tree1065f582cf0a663758038c7572d8723b94f42330
parentc998fd5ee7e90f1861aba6d4a44d8c0b5387bb61 (diff)
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.
-rw-r--r--src/lib/elementary/elm_atspi_bridge.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c
index fbb08a3a7c..c6c1b77061 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)
3968 break; 3968 break;
3969 } 3969 }
3970 3970
3971 if (!atspi_desc)
3972 {
3973 efl_event_callback_stop(event->object);
3974 return;
3975 }
3976
3977 _bridge_signal_send(data, event->object, ATSPI_DBUS_INTERFACE_EVENT_OBJECT, 3971 _bridge_signal_send(data, event->object, ATSPI_DBUS_INTERFACE_EVENT_OBJECT,
3978 &_event_obj_signals[ATSPI_OBJECT_EVENT_CHILDREN_CHANGED], atspi_desc, 3972 &_event_obj_signals[ATSPI_OBJECT_EVENT_CHILDREN_CHANGED], atspi_desc,
3979 idx, 0, "(so)", eldbus_connection_unique_name_get(pd->a11y_bus), ev_data->child); 3973 idx, 0, "(so)", eldbus_connection_unique_name_get(pd->a11y_bus), ev_data->child);