refactor: remove unused ArchMiscWindows::hasValue

This commit is contained in:
sithlord48
2025-03-22 18:02:05 -04:00
committed by Nick Bolton
parent a3875bf71c
commit 5e4188b2fe
2 changed files with 0 additions and 10 deletions

View File

@ -191,13 +191,6 @@ void ArchMiscWindows::deleteKeyTree(HKEY key, const TCHAR *name)
RegDeleteTree(key, name);
}
bool ArchMiscWindows::hasValue(HKEY key, const TCHAR *name)
{
DWORD type;
LONG result = RegQueryValueEx(key, name, 0, &type, NULL, NULL);
return (result == ERROR_SUCCESS && (type == REG_DWORD || type == REG_SZ));
}
ArchMiscWindows::EValueType ArchMiscWindows::typeOfValue(HKEY key, const TCHAR *name)
{
DWORD type;

View File

@ -104,9 +104,6 @@ public:
//! Delete a tree of keys from the registry
static void deleteKeyTree(HKEY parent, const TCHAR *name);
//! Test if a value exists
static bool hasValue(HKEY key, const TCHAR *name);
//! Get type of value
static EValueType typeOfValue(HKEY key, const TCHAR *name);