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:
Dawid Zamirski 2017-11-03 07:49:32 -04:00 committed by John Ferlan
parent ff67685b17
commit 60227fd5ee

View File

@ -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) {