diff --git a/src/lib/arch/win32/ArchMiscWindows.cpp b/src/lib/arch/win32/ArchMiscWindows.cpp index 84024a943..9a9f69de3 100644 --- a/src/lib/arch/win32/ArchMiscWindows.cpp +++ b/src/lib/arch/win32/ArchMiscWindows.cpp @@ -203,17 +203,6 @@ void ArchMiscWindows::setValue(HKEY key, const TCHAR *name, DWORD value) RegSetValueEx(key, name, 0, REG_DWORD, reinterpret_cast(&value), sizeof(DWORD)); } -void ArchMiscWindows::setValueBinary(HKEY key, const TCHAR *name, const std::string &value) -{ - assert(key != NULL); - assert(name != NULL); - if (key == NULL || name == NULL) { - // TODO: throw exception - return; - } - RegSetValueEx(key, name, 0, REG_BINARY, reinterpret_cast(value.data()), (DWORD)value.size()); -} - std::string ArchMiscWindows::readBinaryOrString(HKEY key, const TCHAR *name, DWORD type) { // get the size of the string diff --git a/src/lib/arch/win32/ArchMiscWindows.h b/src/lib/arch/win32/ArchMiscWindows.h index f613edc4d..a40897da4 100644 --- a/src/lib/arch/win32/ArchMiscWindows.h +++ b/src/lib/arch/win32/ArchMiscWindows.h @@ -95,12 +95,6 @@ public: //! Set a DWORD value in the registry static void setValue(HKEY key, const TCHAR *name, DWORD value); - //! Set a BINARY value in the registry - /*! - Sets the \p name value of \p key to \p value.data(). - */ - static void setValueBinary(HKEY key, const TCHAR *name, const std::string &value); - //! Read a string value from the registry static std::string readValueString(HKEY, const TCHAR *name);