aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2025-04-24 08:26:29 -0600
committerGitHub Enterprise <[email protected]>2025-04-24 08:26:29 -0600
commit787449efb4de24fd12f3af3c4e466a9629203108 (patch)
treecb4a0e84a0381e9b4a087401037ba5837e8e65d7 /src/zencore/filesystem.cpp
parentChangelog update terminology (diff)
parent5.6.6-pre1 (diff)
downloadzen-787449efb4de24fd12f3af3c4e466a9629203108.tar.xz
zen-787449efb4de24fd12f3af3c4e466a9629203108.zip
Merge branch 'main' into zs/zencli-list-namespaces-buckets
Diffstat (limited to 'src/zencore/filesystem.cpp')
-rw-r--r--src/zencore/filesystem.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index ad796cb4a..018330d9b 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -2670,22 +2670,6 @@ SetFileReadOnly(const std::filesystem::path& Filename, bool ReadOnly)
return Result;
}
-std::filesystem::path
-StringToPath(const std::string_view& Path)
-{
- std::string_view UnquotedPath = Path;
-
- if (Path.length() > 2 && Path.front() == '\"' && Path.back() == '\"')
- {
- UnquotedPath = Path.substr(1, Path.length() - 2);
- }
- if (UnquotedPath.ends_with('/') || UnquotedPath.ends_with('\\') || UnquotedPath.ends_with(std::filesystem::path::preferred_separator))
- {
- UnquotedPath = UnquotedPath.substr(0, UnquotedPath.length() - 1);
- }
- return std::filesystem::path(UnquotedPath).make_preferred();
-}
-
//////////////////////////////////////////////////////////////////////////
//
// Testing related code follows...