diff options
author | Max Reitz | 2015-08-26 19:47:52 +0200 |
---|---|---|
committer | Kevin Wolf | 2015-09-14 16:51:36 +0200 |
commit | cf25ff850f0b5d44cb79daea88daaf24ce7e4c44 (patch) | |
tree | 5de2f22fffbb7c73c1cb522d9e4fb7e93518c3b8 | |
parent | block: Drop drv parameter from bdrv_fill_options() (diff) | |
download | qemu-cf25ff850f0b5d44cb79daea88daaf24ce7e4c44.tar.gz qemu-cf25ff850f0b5d44cb79daea88daaf24ce7e4c44.tar.xz qemu-cf25ff850f0b5d44cb79daea88daaf24ce7e4c44.zip |
block: Drop bdrv_find_whitelisted_format()
It is unused by now, so we can drop it.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | block.c | 7 | ||||
-rw-r--r-- | include/block/block.h | 2 |
2 files changed, 0 insertions, 9 deletions
@@ -313,13 +313,6 @@ static int bdrv_is_whitelisted(BlockDriver *drv, bool read_only) return 0; } -BlockDriver *bdrv_find_whitelisted_format(const char *format_name, - bool read_only) -{ - BlockDriver *drv = bdrv_find_format(format_name); - return drv && bdrv_is_whitelisted(drv, read_only) ? drv : NULL; -} - typedef struct CreateCo { BlockDriver *drv; char *filename; diff --git a/include/block/block.h b/include/block/block.h index ab4518c957..e539194320 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -193,8 +193,6 @@ BlockDriver *bdrv_find_protocol(const char *filename, bool allow_protocol_prefix, Error **errp); BlockDriver *bdrv_find_format(const char *format_name); -BlockDriver *bdrv_find_whitelisted_format(const char *format_name, - bool readonly); int bdrv_create(BlockDriver *drv, const char* filename, QemuOpts *opts, Error **errp); int bdrv_create_file(const char *filename, QemuOpts *opts, Error **errp); |