Skip to content
Snippets Groups Projects
Commit 129214da authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

fileutils: remove copy

Change-Id: I22b1b79a484b55701570db44dcd2c0387703ff9b
parent 24f2d1d6
No related branches found
No related tags found
No related merge requests found
...@@ -264,12 +264,6 @@ loadTextFile(const std::filesystem::path& path, const std::filesystem::path& def ...@@ -264,12 +264,6 @@ loadTextFile(const std::filesystem::path& path, const std::filesystem::path& def
return buffer; return buffer;
} }
bool
copy(const std::string& src, const std::string& dest)
{
return std::filesystem::copy_file(src, dest);
}
void void
saveFile(const std::filesystem::path& path, const uint8_t* data, size_t data_size, mode_t UNUSED mode) saveFile(const std::filesystem::path& path, const uint8_t* data, size_t data_size, mode_t UNUSED mode)
{ {
......
...@@ -89,8 +89,6 @@ std::vector<uint8_t> loadFile(const std::filesystem::path& path, ...@@ -89,8 +89,6 @@ std::vector<uint8_t> loadFile(const std::filesystem::path& path,
std::string loadTextFile(const std::filesystem::path& path, std::string loadTextFile(const std::filesystem::path& path,
const std::filesystem::path& default_dir = {}); const std::filesystem::path& default_dir = {});
bool copy(const std::string& src, const std::string& dest);
void saveFile(const std::filesystem::path& path, const uint8_t* data, size_t data_size, mode_t mode = 0644); void saveFile(const std::filesystem::path& path, const uint8_t* data, size_t data_size, mode_t mode = 0644);
inline void inline void
saveFile(const std::filesystem::path& path, const std::vector<uint8_t>& data, mode_t mode = 0644) saveFile(const std::filesystem::path& path, const std::vector<uint8_t>& data, mode_t mode = 0644)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment