Remove System::set_environmental_variable()

This commit is contained in:
Alexander Karatarakis 2017-03-31 17:22:08 -07:00
parent 31e55704f5
commit a6aa410f9f
2 changed files with 0 additions and 7 deletions

View File

@ -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);
}

View File

@ -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;