mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virclosecallbacks: Remove unused virCloseCallbacksGetConn
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
8eeb284499
commit
1122b16276
@ -195,30 +195,6 @@ virCloseCallbacksGet(virCloseCallbacks *closeCallbacks,
|
||||
return cb;
|
||||
}
|
||||
|
||||
virConnectPtr
|
||||
virCloseCallbacksGetConn(virCloseCallbacks *closeCallbacks,
|
||||
virDomainObj *vm)
|
||||
{
|
||||
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
||||
virDriverCloseDef *closeDef;
|
||||
virConnectPtr conn = NULL;
|
||||
|
||||
virUUIDFormat(vm->def->uuid, uuidstr);
|
||||
VIR_DEBUG("vm=%s, uuid=%s", vm->def->name, uuidstr);
|
||||
|
||||
virObjectLock(closeCallbacks);
|
||||
|
||||
closeDef = virHashLookup(closeCallbacks->list, uuidstr);
|
||||
if (closeDef)
|
||||
conn = closeDef->conn;
|
||||
|
||||
virObjectUnlock(closeCallbacks);
|
||||
|
||||
VIR_DEBUG("conn=%p", conn);
|
||||
return conn;
|
||||
}
|
||||
|
||||
|
||||
typedef struct _virCloseCallbacksListEntry virCloseCallbacksListEntry;
|
||||
struct _virCloseCallbacksListEntry {
|
||||
unsigned char uuid[VIR_UUID_BUFLEN];
|
||||
|
@ -44,9 +44,6 @@ virCloseCallback
|
||||
virCloseCallbacksGet(virCloseCallbacks *closeCallbacks,
|
||||
virDomainObj *vm,
|
||||
virConnectPtr conn);
|
||||
virConnectPtr
|
||||
virCloseCallbacksGetConn(virCloseCallbacks *closeCallbacks,
|
||||
virDomainObj *vm);
|
||||
|
||||
void
|
||||
virCloseCallbacksRun(virCloseCallbacks *closeCallbacks,
|
||||
|
@ -1595,7 +1595,6 @@ virDomainObjInitJob;
|
||||
|
||||
# hypervisor/virclosecallbacks.h
|
||||
virCloseCallbacksGet;
|
||||
virCloseCallbacksGetConn;
|
||||
virCloseCallbacksNew;
|
||||
virCloseCallbacksRun;
|
||||
virCloseCallbacksSet;
|
||||
|
Loading…
Reference in New Issue
Block a user