From 2adee7c46017d216e992312ea83b0eec2bb64f22 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sat, 22 Mar 2025 18:51:57 -0400 Subject: [PATCH] refactor: remove unused ArchMiscWindows::deleteKeyTree --- src/lib/arch/win32/ArchMiscWindows.cpp | 9 --------- src/lib/arch/win32/ArchMiscWindows.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/src/lib/arch/win32/ArchMiscWindows.cpp b/src/lib/arch/win32/ArchMiscWindows.cpp index 207b91940..84024a943 100644 --- a/src/lib/arch/win32/ArchMiscWindows.cpp +++ b/src/lib/arch/win32/ArchMiscWindows.cpp @@ -161,15 +161,6 @@ void ArchMiscWindows::deleteKey(HKEY key, const TCHAR *name) RegDeleteKey(key, name); } -void ArchMiscWindows::deleteKeyTree(HKEY key, const TCHAR *name) -{ - assert(key != NULL); - assert(name != NULL); - if (key == NULL || name == NULL) - return; - RegDeleteTree(key, name); -} - 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 47b55c1f6..f613edc4d 100644 --- a/src/lib/arch/win32/ArchMiscWindows.h +++ b/src/lib/arch/win32/ArchMiscWindows.h @@ -86,9 +86,6 @@ public: //! Delete a key (which should have no subkeys) static void deleteKey(HKEY parent, const TCHAR *name); - //! Delete a tree of keys from the registry - static void deleteKeyTree(HKEY parent, const TCHAR *name); - //! Get type of value static EValueType typeOfValue(HKEY key, const TCHAR *name);