mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 11:37:12 +01:00
Remove System::set_environmental_variable()
This commit is contained in:
parent
31e55704f5
commit
a6aa410f9f
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user