diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 64987f3a696..e1cd559f49a 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -43,7 +43,6 @@ #include "sched/sched.h" #include "group/group.h" #include "semaphore/semaphore.h" -#include "event/event.h" #include "signal/signal.h" #include "mqueue/mqueue.h" @@ -656,17 +655,6 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info, nxsem_wait_irq(stcb, EINTR); } -#ifdef CONFIG_SCHED_EVENTS - /* If the task is blocked waiting for a event, then that task must - * be unblocked when a signal is received. - */ - - else if (stcb->task_state == TSTATE_WAIT_EVENT) - { - nxevent_wait_irq(stcb, EINTR); - } -#endif - #if !defined(CONFIG_DISABLE_MQUEUE) || !defined(CONFIG_DISABLE_MQUEUE_SYSV) /* If the task is blocked waiting on a message queue, then that task * must be unblocked when a signal is received.