mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: block: Remove unused qemuBlockStorageSourceChainDetachPrepareLegacy
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
48fbd21bd7
commit
eb4c544877
@ -1657,32 +1657,6 @@ qemuBlockStorageSourceChainDetachPrepareBlockdev(virStorageSource *src)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuBlockStorageSourceChainDetachPrepareLegacy
|
||||
* @src: storage source chain to remove
|
||||
* @driveAlias: Alias of the 'drive' backend (always consumed)
|
||||
*
|
||||
* Prepares qemuBlockStorageSourceChainData *for detaching @src and its
|
||||
* backingStore if -drive was used.
|
||||
*/
|
||||
qemuBlockStorageSourceChainData *
|
||||
qemuBlockStorageSourceChainDetachPrepareDrive(virStorageSource *src,
|
||||
char *driveAlias)
|
||||
{
|
||||
g_autoptr(qemuBlockStorageSourceAttachData) backend = NULL;
|
||||
g_autoptr(qemuBlockStorageSourceChainData) data = NULL;
|
||||
|
||||
data = g_new0(qemuBlockStorageSourceChainData, 1);
|
||||
|
||||
if (!(backend = qemuBlockStorageSourceDetachPrepare(src, driveAlias)))
|
||||
return NULL;
|
||||
|
||||
VIR_APPEND_ELEMENT(data->srcdata, data->nsrcdata, backend);
|
||||
|
||||
return g_steal_pointer(&data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuBlockStorageSourceChainDetachPrepareChardev
|
||||
* @src: storage source chain to remove
|
||||
|
@ -149,9 +149,6 @@ qemuBlockStorageSourceChainDataFree(qemuBlockStorageSourceChainData *data);
|
||||
qemuBlockStorageSourceChainData *
|
||||
qemuBlockStorageSourceChainDetachPrepareBlockdev(virStorageSource *src);
|
||||
qemuBlockStorageSourceChainData *
|
||||
qemuBlockStorageSourceChainDetachPrepareDrive(virStorageSource *src,
|
||||
char *driveAlias);
|
||||
qemuBlockStorageSourceChainData *
|
||||
qemuBlockStorageSourceChainDetachPrepareChardev(char *chardevAlias);
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user