]> Git Repo - qemu.git/commitdiff
block: Remove dead deprecation warning code
authorKevin Wolf <[email protected]>
Wed, 13 Jun 2018 09:01:30 +0000 (11:01 +0200)
committerKevin Wolf <[email protected]>
Fri, 15 Jun 2018 12:49:44 +0000 (14:49 +0200)
We removed all options from the 'deprecated' array, so the code is dead
and can be removed as well.

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
blockdev.c

index d1ab425085e996f3a670e7d2c3e00efc859b7c8f..7f65cd7497587213de33ba3a5b7ba43b1d89a1d3 100644 (file)
@@ -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 {
@@ -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) {
This page took 0.0386 seconds and 4 git commands to generate.