Skip to content

Commit

Permalink
block: Remove unused aio_task_pool_empty
Browse files Browse the repository at this point in the history
aio_task_pool_empty has been unused since it was added in
  6e9b225 ("block: introduce aio task pool")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
  • Loading branch information
penguin42 authored and Vladimir Sementsov-Ogievskiy committed Sep 30, 2024
1 parent 6475155 commit e84af3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions block/aio_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions include/block/aio_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e84af3e

Please sign in to comment.