Skip to content

Commit

Permalink
block: Remove dead deprecation warning code
Browse files Browse the repository at this point in the history
We removed all options from the 'deprecated' array, so the code is dead
and can be removed as well.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
kevmw committed Jun 15, 2018
1 parent b008326 commit 6266e90
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions blockdev.c
Expand Up @@ -775,8 +775,6 @@ DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type)
const char *filename;
Error *local_err = NULL;
int i;
const char *deprecated[] = {
};

/* Change legacy command line options into QMP ones */
static const struct {
Expand Down Expand Up @@ -853,16 +851,6 @@ DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type)
goto fail;
}

/* Other deprecated options */
if (!qtest_enabled()) {
for (i = 0; i < ARRAY_SIZE(deprecated); i++) {
if (qemu_opt_get(legacy_opts, deprecated[i]) != NULL) {
error_report("'%s' is deprecated, please use the corresponding "
"option of '-device' instead", deprecated[i]);
}
}
}

/* Media type */
value = qemu_opt_get(legacy_opts, "media");
if (value) {
Expand Down

0 comments on commit 6266e90

Please sign in to comment.