aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 17:22:08 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 17:22:08 -0700
commita6aa410f9fb7855b9cc94bae00d15fea8018250e (patch)
tree090596d28bd91bc8969e238a99a63770576dd949
parent31e55704f5854b27d80e93576f182342f6e73707 (diff)
downloadvcpkg-a6aa410f9fb7855b9cc94bae00d15fea8018250e.tar.gz
vcpkg-a6aa410f9fb7855b9cc94bae00d15fea8018250e.zip
Remove System::set_environmental_variable()
-rw-r--r--toolsrc/include/vcpkg_System.h2
-rw-r--r--toolsrc/src/vcpkg_System.cpp5
2 files changed, 0 insertions, 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<std::wstring> get_environmental_variable(const cwstring_view varname) noexcept;
- void set_environmental_variable(const cwstring_view varname, const cwstring_view varvalue) noexcept;
-
optional<std::wstring> 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;