block: Remove unused aio_task_pool_empty
authorDr. David Alan Gilbert <dave@treblig.org>
Tue, 17 Sep 2024 00:20:07 +0000 (01:20 +0100)
committerVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Mon, 30 Sep 2024 07:53:18 +0000 (10:53 +0300)
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 <dave@treblig.org>
Message-Id: <20240917002007.330689-1-dave@treblig.org>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/aio_task.c
include/block/aio_task.h

index 9bd17ea2c13d2e6763c5afc538021a4ea3e3330f..bb5c05f455d315a3d62714b0ee4969a01bf84fcb 100644 (file)
@@ -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;
-}
index 18a9c41f4e6c78bb32dedb48bbf3d97438104c7c..c81d637617ec322130258b6b54132aaa816d2be1 100644 (file)
@@ -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);