virclosecallbacks: Remove unused virCloseCallbacksGetConn

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
Peter Krempa 2022-06-29 14:03:06 +02:00
parent 8eeb284499
commit 1122b16276
3 changed files with 0 additions and 28 deletions

View File

@ -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];

View File

@ -44,9 +44,6 @@ virCloseCallback
virCloseCallbacksGet(virCloseCallbacks *closeCallbacks,
virDomainObj *vm,
virConnectPtr conn);
virConnectPtr
virCloseCallbacksGetConn(virCloseCallbacks *closeCallbacks,
virDomainObj *vm);
void
virCloseCallbacksRun(virCloseCallbacks *closeCallbacks,

View File

@ -1595,7 +1595,6 @@ virDomainObjInitJob;
# hypervisor/virclosecallbacks.h
virCloseCallbacksGet;
virCloseCallbacksGetConn;
virCloseCallbacksNew;
virCloseCallbacksRun;
virCloseCallbacksSet;