VMs: minor code optimization

This commit is contained in:
bergware
2018-08-16 00:50:32 +02:00
parent 28b7f2799a
commit afbea9a16b

View File

@@ -1099,9 +1099,7 @@
}
}
// settings not in the GUI, but maybe customized
$new['memoryBacking'] = $old['memoryBacking'];
$new['clock'] = $old['clock'];
$new['features'] = $old['features'];
unset($new['memoryBacking'], $new['clock'], $new['features']);
// update parent arrays
if (!$old['devices']['hostdev']) unset($old['devices']['hostdev']);
if (!$new['devices']['hostdev']) unset($new['devices']['hostdev']);