From a6aa410f9fb7855b9cc94bae00d15fea8018250e Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Fri, 31 Mar 2017 17:22:08 -0700 Subject: [PATCH] Remove System::set_environmental_variable() --- toolsrc/include/vcpkg_System.h | 2 -- toolsrc/src/vcpkg_System.cpp | 5 ----- 2 files changed, 7 deletions(-) diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h index 1a0c89da4..84fe43988 100644 --- a/toolsrc/include/vcpkg_System.h +++ b/toolsrc/include/vcpkg_System.h @@ -61,7 +61,5 @@ namespace vcpkg::System optional get_environmental_variable(const cwstring_view varname) noexcept; - void set_environmental_variable(const cwstring_view varname, const cwstring_view varvalue) noexcept; - optional get_registry_string(HKEY base, const cwstring_view subkey, const cwstring_view valuename); } diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index d125be078..767017f76 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -175,11 +175,6 @@ namespace vcpkg::System return *ret.release(); } - void set_environmental_variable(const cwstring_view varname, const cwstring_view varvalue) noexcept - { - _wputenv_s(varname, varvalue); - } - static bool is_string_keytype(DWORD hkey_type) { return hkey_type == REG_SZ || hkey_type == REG_MULTI_SZ || hkey_type == REG_EXPAND_SZ;