Skip to content
Snippets Groups Projects
Commit 6eb34542 authored by Adrien Béraud's avatar Adrien Béraud Committed by Adrien Béraud
Browse files

fileutils: remove unused code

Change-Id: I48010c00de05d3b878a4a27256bb8b2da8a869c1
parent f1082445
No related branches found
No related tags found
No related merge requests found
......@@ -358,46 +358,6 @@ removeAll(const std::filesystem::path& path, bool erase)
}
}
void
openStream(std::ifstream& file, const std::filesystem::path& path, std::ios_base::openmode mode)
{
#ifdef _WIN32
file.open(dhtnet::to_wstring(path.string()), mode);
#else
file.open(path, mode);
#endif
}
void
openStream(std::ofstream& file, const std::filesystem::path& path, std::ios_base::openmode mode)
{
#ifdef _WIN32
file.open(dhtnet::to_wstring(path.string()), mode);
#else
file.open(path, mode);
#endif
}
std::ifstream
ifstream(const std::filesystem::path& path, std::ios_base::openmode mode)
{
#ifdef _WIN32
return std::ifstream(dhtnet::to_wstring(path.string()), mode);
#else
return std::ifstream(path, mode);
#endif
}
std::ofstream
ofstream(const std::filesystem::path& path, std::ios_base::openmode mode)
{
#ifdef _WIN32
return std::ofstream(dhtnet::to_wstring(path.string()), mode);
#else
return std::ofstream(path, mode);
#endif
}
int
accessFile(const std::filesystem::path& file, int mode)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment