From 9da7ae319bf2e17f26e1767d4920c82903ef1799 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Thu, 29 Sep 2022 14:39:47 +0300 Subject: [PATCH] Remove unused OvpnPeerUninit function Signed-off-by: Lev Stipakov --- peer.cpp | 11 ----------- peer.h | 5 ----- 2 files changed, 16 deletions(-) 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);