diff options
| author | Liam Mitchell <[email protected]> | 2026-01-15 17:08:03 -0800 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2026-01-15 17:08:03 -0800 |
| commit | 95d1bf56a77ecbd158e828592110d57f5445ed5e (patch) | |
| tree | c3416397ac8d6bb448044f31d0b66b581aadce1d /src/zencore | |
| parent | Use well-known OidcToken paths or command line arguments to determine OidcTok... (diff) | |
| download | zen-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')
| -rw-r--r-- | src/zencore/filesystem.cpp | 12 | ||||
| -rw-r--r-- | src/zencore/include/zencore/filesystem.h | 1 |
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); |