[PATCH V11 14/15] iothread: remove legacy iothread_get_aio_context()
Zhang Chen <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
All production callers have migrated to either the holder-tracking iothread_ref_and_get_aio_context() API or the explicitly unsafe legacy accessor. Remove the now-unused ambiguous getter. Signed-off-by: Zhang Chen <[email protected]> --- include/system/iothread.h | 1 - iothread.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/system/iothread.h b/include/system/iothread.h index cf1b6e0cdc..2e28fd3ad0 100644 --- a/include/system/iothread.h +++ b/include/system/iothread.h @@ -66,7 +66,6 @@ DECLARE_INSTANCE_CHECKER(IOThread, IOTHREAD, char *iothread_get_id(IOThread *iothread); IOThread *iothread_by_id(const char *id); -AioContext *iothread_get_aio_context(IOThread *iothread); /* * Return @iothread's AioContext without registering a holder or taking a diff --git a/iothread.c b/iothread.c index 43f42c65c8..06c5926b6e 100644 --- a/iothread.c +++ b/iothread.c @@ -422,11 +422,6 @@ char *iothread_get_id(IOThread *iothread) return g_strdup(object_get_canonical_path_component(OBJECT(iothread))); } -AioContext *iothread_get_aio_context(IOThread *iothread) -{ - return iothread->ctx; -} - AioContext *iothread_ref_and_get_aio_context(IOThread *iothread, const IOThreadHolder *holder) { -- 2.53.0