aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/filesystem.cpp12
-rw-r--r--src/zencore/include/zencore/filesystem.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index 8adb66972..7f341818b 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -2756,18 +2756,6 @@ GetEnvVariable(std::string_view VariableName)
return "";
}
-bool
-SetEnvVariable(std::string Name, std::string Value)
-{
- ZEN_ASSERT(!Name.empty() && !Value.empty());
-#if ZEN_PLATFORM_WINDOWS
- return SetEnvironmentVariableA(Name.c_str(), Value.c_str());
-#endif
-#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
- return setenv(Name.c_str(), Value.c_str(), /* overwrite */ 1) == 0;
-#endif
-}
-
std::error_code
RotateFiles(const std::filesystem::path& Filename, std::size_t MaxFiles)
{
diff --git a/src/zencore/include/zencore/filesystem.h b/src/zencore/include/zencore/filesystem.h
index b7422d389..b4906aebf 100644
--- a/src/zencore/include/zencore/filesystem.h
+++ b/src/zencore/include/zencore/filesystem.h
@@ -378,7 +378,6 @@ void GetDirectoryContent(const std::filesystem::path& RootDir,
Latch& PendingWorkCount);
std::string GetEnvVariable(std::string_view VariableName);
-bool SetEnvVariable(std::string Name, std::string Value);
std::filesystem::path SearchPathForExecutable(std::string_view ExecutableName);