From 6f6e9cddb75c11b0926aa9b802b2b6880208c16e Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sat, 22 Mar 2025 18:49:41 -0400 Subject: [PATCH] refactor: remove unused ArchMiscWindows::deleteValue --- 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 a1966cdf1..207b91940 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::deleteValue(HKEY key, const TCHAR *name) -{ - assert(key != NULL); - assert(name != NULL); - if (key == NULL || name == NULL) - return; - RegDeleteValue(key, name); -} - void ArchMiscWindows::deleteKeyTree(HKEY key, const TCHAR *name) { assert(key != NULL); diff --git a/src/lib/arch/win32/ArchMiscWindows.h b/src/lib/arch/win32/ArchMiscWindows.h index 9caf9a9f7..47b55c1f6 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 value - static void deleteValue(HKEY parent, const TCHAR *name); - //! Delete a tree of keys from the registry static void deleteKeyTree(HKEY parent, const TCHAR *name);