qemu: Remove 'removable' field from 'qemuDomainDiskPrivate'

The field is only set, but never read. Drop it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa committed 2026-02-12 16:45:34 +01:00
1 parent 861be1078e
commit 074f7fba94
2 files changed
-3

No files matched your search

-2
View File
@@ -288,9 +288,7 @@ struct _qemuDomainDiskPrivate {
virStorageSource *migrSource; /* disk source object used for NBD migration */
bool migrationslice; /* storage slice was added for migration purposes */
/* information about the device */
bool tray; /* device has tray */
bool removable; /* device media can be removed/changed */
char *qomName; /* QOM path of the disk (also refers to the block backend) */
char *nodeCopyOnRead; /* nodename of the disk-wide copy-on-read blockdev layer */
-1
View File
@@ -9555,7 +9555,6 @@ qemuProcessRefreshDiskProps(virDomainDiskDef *disk,
}
}
diskpriv->removable = info->removable;
diskpriv->tray = info->tray;
}