refactor: remove unused ArchMiscWindows::hasValue
This commit is contained in:
parent
a3875bf71c
commit
5e4188b2fe
2 changed files with 0 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue