aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-01-15 17:08:03 -0800
committerLiam Mitchell <[email protected]>2026-01-15 17:08:03 -0800
commit95d1bf56a77ecbd158e828592110d57f5445ed5e (patch)
treec3416397ac8d6bb448044f31d0b66b581aadce1d /src/zencore/filesystem.cpp
parentUse well-known OidcToken paths or command line arguments to determine OidcTok... (diff)
downloadzen-lm/oidctoken-exe-path.tar.xz
zen-lm/oidctoken-exe-path.zip
Pass command-line OidcToken option through config rather than env variables, and add lua optionlm/oidctoken-exe-path
Diffstat (limited to 'src/zencore/filesystem.cpp')
-rw-r--r--src/zencore/filesystem.cpp12
1 files changed, 0 insertions, 12 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)
{