chore: io/FileSystem remove unused methods

This commit is contained in:
sithlord48
2025-12-05 16:30:07 -05:00
committed by Nick Bolton
parent 26417a2543
commit 2d682d9151
2 changed files with 0 additions and 34 deletions

View File

@ -7,34 +7,8 @@
#include "Filesystem.h"
#include <fstream>
namespace deskflow {
namespace {
template <class Stream> void openUtf8PathImpl(Stream &stream, const fs::path &path, std::ios_base::openmode mode)
{
stream.open(path.native().c_str(), mode);
}
} // namespace
void openUtf8Path(std::ifstream &stream, const fs::path &path, std::ios_base::openmode mode)
{
openUtf8PathImpl(stream, path, mode);
}
void openUtf8Path(std::ofstream &stream, const fs::path &path, std::ios_base::openmode mode)
{
openUtf8PathImpl(stream, path, mode);
}
void openUtf8Path(std::fstream &stream, const fs::path &path, std::ios_base::openmode mode)
{
openUtf8PathImpl(stream, path, mode);
}
std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode)
{
#if SYSAPI_WIN32

View File

@ -9,19 +9,11 @@
#include <cstdio>
#include <filesystem>
#include <ios>
#include <iosfwd>
namespace deskflow {
namespace fs = std::filesystem;
void openUtf8Path(std::ifstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::in);
void openUtf8Path(std::ofstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::out);
void openUtf8Path(
std::fstream &stream, const fs::path &path, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out
);
std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode);
} // namespace deskflow