aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-08-26 19:47:52 +0200
committerKevin Wolf <kwolf@redhat.com>2015-09-14 16:51:36 +0200
commitcf25ff850f0b5d44cb79daea88daaf24ce7e4c44 (patch)
tree5de2f22fffbb7c73c1cb522d9e4fb7e93518c3b8 /block.c
parent053e1578c9fa6a58e50e44de689f288063c77dbe (diff)
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>
Diffstat (limited to 'block.c')
-rw-r--r--block.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/block.c b/block.c
index 7c615554fb..3de83e6534 100644
--- a/block.c
+++ b/block.c
@@ -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;