mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
vbox: Remove unused mediumEmpty
Remove the setting since it's unused as of commit 34364df3 which should have never copied it in from the old code which ended up getting removed as part of commit c7c286c6.
This commit is contained in:
parent
ff67685b17
commit
60227fd5ee
@ -965,7 +965,7 @@ vboxAttachDrives(virDomainDefPtr def, vboxDriverPtr data, IMachine *machine)
|
||||
virDomainDiskDefPtr disk = NULL;
|
||||
PRUnichar *storageCtlName = NULL;
|
||||
IMedium *medium = NULL;
|
||||
PRUnichar *mediumFileUtf16 = NULL, *mediumEmpty = NULL;
|
||||
PRUnichar *mediumFileUtf16 = NULL;
|
||||
PRUint32 devicePort, deviceSlot, deviceType, accessMode;
|
||||
vboxIID mediumUUID;
|
||||
|
||||
@ -1056,13 +1056,10 @@ vboxAttachDrives(virDomainDefPtr def, vboxDriverPtr data, IMachine *machine)
|
||||
deviceType, accessMode, &medium);
|
||||
|
||||
if (!medium) {
|
||||
VBOX_UTF8_TO_UTF16("", &mediumEmpty);
|
||||
|
||||
rc = gVBoxAPI.UIVirtualBox.OpenMedium(data->vboxObj,
|
||||
mediumFileUtf16,
|
||||
deviceType, accessMode,
|
||||
&medium);
|
||||
VBOX_UTF16_FREE(mediumEmpty);
|
||||
}
|
||||
|
||||
if (!medium) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user