From: Dr. David Alan Gilbert Date: Tue, 17 Sep 2024 00:20:07 +0000 (+0100) Subject: block: Remove unused aio_task_pool_empty X-Git-Tag: v9.2.0-rc0~70^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e84af3eb727d2c6de00693c48fbec1d6e68fbf9a;p=thirdparty%2Fqemu.git block: Remove unused aio_task_pool_empty aio_task_pool_empty has been unused since it was added in 6e9b225f73 ("block: introduce aio task pool") Remove it. Signed-off-by: Dr. David Alan Gilbert Message-Id: <20240917002007.330689-1-dave@treblig.org> Signed-off-by: Vladimir Sementsov-Ogievskiy --- diff --git a/block/aio_task.c b/block/aio_task.c index 9bd17ea2c13..bb5c05f455d 100644 --- a/block/aio_task.c +++ b/block/aio_task.c @@ -119,8 +119,3 @@ int aio_task_pool_status(AioTaskPool *pool) return pool->status; } - -bool aio_task_pool_empty(AioTaskPool *pool) -{ - return pool->busy_tasks == 0; -} diff --git a/include/block/aio_task.h b/include/block/aio_task.h index 18a9c41f4e6..c81d637617e 100644 --- a/include/block/aio_task.h +++ b/include/block/aio_task.h @@ -40,8 +40,6 @@ void aio_task_pool_free(AioTaskPool *); /* error code of failed task or 0 if all is OK */ int aio_task_pool_status(AioTaskPool *pool); -bool aio_task_pool_empty(AioTaskPool *pool); - /* User provides filled @task, however task->pool will be set automatically */ void coroutine_fn aio_task_pool_start_task(AioTaskPool *pool, AioTask *task);