diff options
| author | Stefan Boberg <[email protected]> | 2023-05-02 10:01:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-02 10:01:47 +0200 |
| commit | 075d17f8ada47e990fe94606c3d21df409223465 (patch) | |
| tree | e50549b766a2f3c354798a54ff73404217b4c9af /zencore/session.cpp | |
| parent | fix: bundle shouldn't append content zip to zen (diff) | |
| download | zen-075d17f8ada47e990fe94606c3d21df409223465.tar.xz zen-075d17f8ada47e990fe94606c3d21df409223465.zip | |
moved source directories into `/src` (#264)
* moved source directories into `/src`
* updated bundle.lua for new `src` path
* moved some docs, icon
* removed old test trees
Diffstat (limited to 'zencore/session.cpp')
| -rw-r--r-- | zencore/session.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/zencore/session.cpp b/zencore/session.cpp deleted file mode 100644 index ce4bfae1b..000000000 --- a/zencore/session.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright Epic Games, Inc. All Rights Reserved. - -#include "zencore/session.h" - -#include <zencore/uid.h> - -#include <mutex> - -namespace zen { - -static Oid GlobalSessionId; -static char GlobalSessionString[Oid::StringLength]; -static std::once_flag SessionInitFlag; - -Oid -GetSessionId() -{ - std::call_once(SessionInitFlag, [&] { - GlobalSessionId.Generate(); - GlobalSessionId.ToString(GlobalSessionString); - }); - - return GlobalSessionId; -} - -std::string_view -GetSessionIdString() -{ - // Ensure we actually have a generated session identifier - std::ignore = GetSessionId(); - - return std::string_view(GlobalSessionString, Oid::StringLength); -} - -} // namespace zen
\ No newline at end of file |