diff --git a/src/lib/arch/win32/ArchMiscWindows.cpp b/src/lib/arch/win32/ArchMiscWindows.cpp index 54e242e53..67dac3d93 100644 --- a/src/lib/arch/win32/ArchMiscWindows.cpp +++ b/src/lib/arch/win32/ArchMiscWindows.cpp @@ -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; diff --git a/src/lib/arch/win32/ArchMiscWindows.h b/src/lib/arch/win32/ArchMiscWindows.h index 22300420d..809cb551d 100644 --- a/src/lib/arch/win32/ArchMiscWindows.h +++ b/src/lib/arch/win32/ArchMiscWindows.h @@ -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);