diff --git a/peer.cpp b/peer.cpp index 42b4387..88f7326 100644 --- a/peer.cpp +++ b/peer.cpp @@ -284,14 +284,3 @@ OvpnPeerSwapKeys(POVPN_DEVICE device) return STATUS_SUCCESS; } - -_Use_decl_annotations_ -VOID -OvpnPeerUninit(POVPN_DEVICE device) -{ - LOG_IF_NOT_NT_SUCCESS(OvpnPeerDel(device)); - - LOG_INFO("Uninitializing device"); - - OvpnAdapterSetLinkState(OvpnGetAdapterContext(device->Adapter), MediaConnectStateDisconnected); -} diff --git a/peer.h b/peer.h index e644041..4eecca6 100644 --- a/peer.h +++ b/peer.h @@ -61,8 +61,3 @@ _Must_inspect_result_ _Requires_exclusive_lock_held_(device->SpinLock) NTSTATUS OvpnPeerSwapKeys(_In_ POVPN_DEVICE device); - -_IRQL_requires_same_ -_IRQL_requires_(PASSIVE_LEVEL) -VOID -OvpnPeerUninit(_In_ POVPN_DEVICE device);