aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-15 12:22:26 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:51:00 +0100
commit2a77f20277736a9f086f973132bcf7a062a332ae (patch)
tree2827d87623ca5fc08e3b860352111b01582d1b6a /api
parentapi: added missing allocation-failure check (diff)
downloadwintun-2a77f20277736a9f086f973132bcf7a062a332ae.tar.xz
wintun-2a77f20277736a9f086f973132bcf7a062a332ae.zip
api: remove dead code
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api')
-rw-r--r--api/registry.c11
-rw-r--r--api/registry.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/api/registry.c b/api/registry.c
index f735d4d..30a152c 100644
--- a/api/registry.c
+++ b/api/registry.c
@@ -85,17 +85,6 @@ RegistryOpenKeyWait(
return OpenKeyWait(Key, Buf, Access, GetTickCount64() + Timeout, KeyOut);
}
-WINTUN_STATUS
-RegistryWaitForKey(_In_ HKEY Key, _In_z_count_c_(MAX_REG_PATH) const WCHAR *Path, _In_ DWORD Timeout)
-{
- HKEY k;
- DWORD Result = RegistryOpenKeyWait(Key, Path, KEY_NOTIFY, Timeout, &k);
- if (Result != ERROR_SUCCESS)
- return Result;
- RegCloseKey(k);
- return ERROR_SUCCESS;
-}
-
/**
* Validates and/or sanitizes string value read from registry.
*
diff --git a/api/registry.h b/api/registry.h
index 82d0b42..222694a 100644
--- a/api/registry.h
+++ b/api/registry.h
@@ -20,9 +20,6 @@ RegistryOpenKeyWait(
_Out_ HKEY *KeyOut);
WINTUN_STATUS
-RegistryWaitForKey(_In_ HKEY Key, _In_z_count_c_(MAX_REG_PATH) const WCHAR *Path, _In_ DWORD Timeout);
-
-WINTUN_STATUS
RegistryGetString(_Inout_ WCHAR **Buf, _In_ DWORD Len, _In_ DWORD ValueType);
WINTUN_STATUS