Remove another RUNLOOP_CTL_ action

This commit is contained in:
twinaphex 2016-10-26 04:11:12 +02:00
parent d0a1c8609f
commit 830f64446b
2 changed files with 1 additions and 5 deletions

View File

@ -145,7 +145,7 @@ void runloop_msg_queue_push(const char *msg,
#endif
if (flush)
runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_CLEAR, NULL);
msg_queue_clear(runloop_msg_queue);
msg_info.msg = msg;
msg_info.prio = prio;
@ -509,9 +509,6 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
slock_unlock(_runloop_msg_queue_lock);
#endif
break;
case RUNLOOP_CTL_MSG_QUEUE_CLEAR:
msg_queue_clear(runloop_msg_queue);
break;
case RUNLOOP_CTL_MSG_QUEUE_DEINIT:
if (!runloop_msg_queue)
return true;

View File

@ -94,7 +94,6 @@ enum runloop_ctl_state
RUNLOOP_CTL_MSG_QUEUE_INIT,
RUNLOOP_CTL_MSG_QUEUE_DEINIT,
RUNLOOP_CTL_MSG_QUEUE_PULL,
RUNLOOP_CTL_MSG_QUEUE_CLEAR,
/* Core options */
RUNLOOP_CTL_HAS_CORE_OPTIONS,