aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-09-01 15:46:04 -0300
committerKevin Wolf <kwolf@redhat.com>2023-09-08 17:03:09 +0200
commitbe2e51c5034ffb2b8d9a4618e8f9b7ff82cb057c (patch)
tree627ccbe1b310d4f7d026f711bb121761909359ae
parenta8d99c0e6c52191c8a3e01ed79b1a9f186a3a91e (diff)
downloadqemu-be2e51c5034ffb2b8d9a4618e8f9b7ff82cb057c.zip
qemu-be2e51c5034ffb2b8d9a4618e8f9b7ff82cb057c.tar.gz
qemu-be2e51c5034ffb2b8d9a4618e8f9b7ff82cb057c.tar.bz2
block: Remove bdrv_query_block_node_info
The last call site of this function has been removed by commit c04d0ab026 ("qemu-img: Let info print block graph"). Reviewed-by: Claudio Fontana <cfontana@suse.de> Signed-off-by: Fabiano Rosas <farosas@suse.de> Message-ID: <20230901184605.32260-2-farosas@suse.de> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block/qapi.c27
-rw-r--r--include/block/qapi.h3
2 files changed, 0 insertions, 30 deletions
diff --git a/block/qapi.c b/block/qapi.c
index f34f95e..79bf80c 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -310,33 +310,6 @@ out:
}
/**
- * bdrv_query_block_node_info:
- * @bs: block node to examine
- * @p_info: location to store node information
- * @errp: location to store error information
- *
- * Store image information about @bs in @p_info.
- *
- * @p_info will be set only on success. On error, store error in @errp.
- */
-void bdrv_query_block_node_info(BlockDriverState *bs,
- BlockNodeInfo **p_info,
- Error **errp)
-{
- BlockNodeInfo *info;
- ERRP_GUARD();
-
- info = g_new0(BlockNodeInfo, 1);
- bdrv_do_query_node_info(bs, info, errp);
- if (*errp) {
- qapi_free_BlockNodeInfo(info);
- return;
- }
-
- *p_info = info;
-}
-
-/**
* bdrv_query_image_info:
* @bs: block node to examine
* @p_info: location to store image information
diff --git a/include/block/qapi.h b/include/block/qapi.h
index 18d48dd..8663971 100644
--- a/include/block/qapi.h
+++ b/include/block/qapi.h
@@ -36,9 +36,6 @@ BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
int bdrv_query_snapshot_info_list(BlockDriverState *bs,
SnapshotInfoList **p_list,
Error **errp);
-void bdrv_query_block_node_info(BlockDriverState *bs,
- BlockNodeInfo **p_info,
- Error **errp);
void bdrv_query_image_info(BlockDriverState *bs,
ImageInfo **p_info,
bool flat,