summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2016-05-17 16:41:30 +0200
committerKevin Wolf <kwolf@redhat.com>2016-05-25 19:04:10 +0200
commit9bddf759790cf1b9c46889f8f8370c90e6ca7610 (patch)
treebaf2a0d8d841c5f303307c881dfc5464d6ff665c
parent28eb9b12f7280287c7b693edd351f28ae0d99e60 (diff)
downloadqemu-9bddf759790cf1b9c46889f8f8370c90e6ca7610.tar.gz
qemu-9bddf759790cf1b9c46889f8f8370c90e6ca7610.tar.bz2
qemu-9bddf759790cf1b9c46889f8f8370c90e6ca7610.zip
block: Drop bdrv_new_root()
It is unused now, so we may just as well drop it. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block.c5
-rw-r--r--include/block/block.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/block.c b/block.c
index 17ee088105..ed4b487778 100644
--- a/block.c
+++ b/block.c
@@ -220,11 +220,6 @@ void bdrv_register(BlockDriver *bdrv)
QLIST_INSERT_HEAD(&bdrv_drivers, bdrv, list);
}
-BlockDriverState *bdrv_new_root(void)
-{
- return bdrv_new();
-}
-
BlockDriverState *bdrv_new(void)
{
BlockDriverState *bs;
diff --git a/include/block/block.h b/include/block/block.h
index 770ca26c57..348e4783f0 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -197,7 +197,6 @@ BlockDriver *bdrv_find_format(const char *format_name);
int bdrv_create(BlockDriver *drv, const char* filename,
QemuOpts *opts, Error **errp);
int bdrv_create_file(const char *filename, QemuOpts *opts, Error **errp);
-BlockDriverState *bdrv_new_root(void);
BlockDriverState *bdrv_new(void);
void bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top);
void bdrv_replace_in_backing_chain(BlockDriverState *old,