From 6eb34542e28857cbcccc2aaacdc32a03618e63c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Mon, 21 Apr 2025 18:29:05 -0400
Subject: [PATCH] fileutils: remove unused code

Change-Id: I48010c00de05d3b878a4a27256bb8b2da8a869c1
---
 src/fileutils.cpp | 40 ----------------------------------------
 1 file changed, 40 deletions(-)

diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index 335da58..b1b0b7f 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -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)
 {
-- 
GitLab