Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/hypervisor/virclosecallbacks.c | 24 ------------------------ src/hypervisor/virclosecallbacks.h | 3 --- src/libvirt_private.syms | 1 - 3 files changed, 28 deletions(-) diff --git a/src/hypervisor/virclosecallbacks.c b/src/hypervisor/virclosecallbacks.c index c533e695f1..a08464438a 100644 --- a/src/hypervisor/virclosecallbacks.c +++ b/src/hypervisor/virclosecallbacks.c @@ -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]; diff --git a/src/hypervisor/virclosecallbacks.h b/src/hypervisor/virclosecallbacks.h index 5a56dea292..7afb0e5640 100644 --- a/src/hypervisor/virclosecallbacks.h +++ b/src/hypervisor/virclosecallbacks.h @@ -44,9 +44,6 @@ virCloseCallback virCloseCallbacksGet(virCloseCallbacks *closeCallbacks, virDomainObj *vm, virConnectPtr conn); -virConnectPtr -virCloseCallbacksGetConn(virCloseCallbacks *closeCallbacks, - virDomainObj *vm); void virCloseCallbacksRun(virCloseCallbacks *closeCallbacks, diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index f4732f1742..1dd611e697 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -1594,7 +1594,6 @@ virDomainJobTypeToString; # hypervisor/virclosecallbacks.h virCloseCallbacksGet; -virCloseCallbacksGetConn; virCloseCallbacksNew; virCloseCallbacksRun; virCloseCallbacksSet; -- 2.36.1