diff options
author | Max Reitz <mreitz@redhat.com> | 2016-05-17 16:41:30 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-25 19:04:10 +0200 |
commit | 9bddf759790cf1b9c46889f8f8370c90e6ca7610 (patch) | |
tree | baf2a0d8d841c5f303307c881dfc5464d6ff665c | |
parent | 28eb9b12f7280287c7b693edd351f28ae0d99e60 (diff) |
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.c | 5 | ||||
-rw-r--r-- | include/block/block.h | 1 |
2 files changed, 0 insertions, 6 deletions
@@ -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, |