diff --git a/softmmu/vl.c b/softmmu/vl.c index 1925ebba347..61fa239fab8 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2863,18 +2863,6 @@ void qemu_init(int argc, char **argv) } } - if (strlen(dvd_path) > 0) { - // Allow clearing the dvd path on boot. - for (int i = 1; i < argc; i++) { - if (argv[i] && strcmp(argv[i], "-no_dvd") == 0) { - argv[i] = NULL; - dvd_path = ""; - xemu_settings_set_string(&g_config.sys.files.dvd_path, ""); - break; - } - } - } - if (strlen(dvd_path) > 0) { if (xemu_check_file(dvd_path) || strcmp(dvd_path, hdd_path) == 0) { char *msg = g_strdup_printf("Failed to open DVD image file '%s'. Please check machine settings.", dvd_path);