Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- include/qemu/coroutine.h | 5 ----- util/qemu-coroutine-lock.c | 14 -------------- 2 files changed, 19 deletions(-)
diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index 63ae7fe..bb23be0 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -130,11 +130,6 @@ bool coroutine_fn qemu_co_queue_next(CoQueue *queue); void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue); /** - * Enter the next coroutine in the queue - */ -bool qemu_co_enter_next(CoQueue *queue); - -/** * Checks if the CoQueue is empty. */ bool qemu_co_queue_empty(CoQueue *queue); diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c index cf53693..1f46970 100644 --- a/util/qemu-coroutine-lock.c +++ b/util/qemu-coroutine-lock.c @@ -93,20 +93,6 @@ void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue) qemu_co_queue_do_restart(queue, false); } -bool qemu_co_enter_next(CoQueue *queue) -{ - Coroutine *next; - - next = QSIMPLEQ_FIRST(&queue->entries); - if (!next) { - return false; - } - - QSIMPLEQ_REMOVE_HEAD(&queue->entries, co_queue_next); - qemu_coroutine_enter(next, NULL); - return true; -} - bool qemu_co_queue_empty(CoQueue *queue) { return QSIMPLEQ_FIRST(&queue->entries) == NULL; -- 2.5.5