aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/file_io_utils.cpp
diff options
context:
space:
mode:
authorJeffrey <jeffryan@tamu.edu>2022-03-07 18:27:28 -0600
committerJeffrey <jeffryan@tamu.edu>2022-04-18 09:55:20 -0500
commit12b1b74d322f9933bb5d2ccbccd2566ee44cd3fc (patch)
treef786d2690abe629f655d521d9fc26f28e4805daa /contrib/epee/src/file_io_utils.cpp
parentBoring Old Deletes (diff)
downloadmonero-12b1b74d322f9933bb5d2ccbccd2566ee44cd3fc.tar.xz
Trimming Fat
Remove unused include statements or unused definitions.
Diffstat (limited to 'contrib/epee/src/file_io_utils.cpp')
-rw-r--r--contrib/epee/src/file_io_utils.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/contrib/epee/src/file_io_utils.cpp b/contrib/epee/src/file_io_utils.cpp
index 5072adcbc..a8348431c 100644
--- a/contrib/epee/src/file_io_utils.cpp
+++ b/contrib/epee/src/file_io_utils.cpp
@@ -102,29 +102,6 @@ namespace file_io_utils
}
- bool get_file_time(const std::string& path_to_file, time_t& ft)
- {
- boost::system::error_code ec;
- ft = boost::filesystem::last_write_time(boost::filesystem::path(path_to_file), ec);
- if(!ec)
- return true;
- else
- return false;
- }
-
-
- bool set_file_time(const std::string& path_to_file, const time_t& ft)
- {
- boost::system::error_code ec;
- boost::filesystem::last_write_time(boost::filesystem::path(path_to_file), ft, ec);
- if(!ec)
- return true;
- else
- return false;
- }
-
-
-
bool load_file_to_string(const std::string& path_to_file, std::string& target_str, size_t max_size)
{
#ifdef WIN32
@@ -174,26 +151,6 @@ namespace file_io_utils
}
- bool append_string_to_file(const std::string& path_to_file, const std::string& str)
- {
- // No special Windows implementation because so far not used in Monero code
- try
- {
- std::ofstream fstream;
- fstream.exceptions(std::ifstream::failbit | std::ifstream::badbit);
- fstream.open(path_to_file.c_str(), std::ios_base::binary | std::ios_base::out | std::ios_base::app);
- fstream << str;
- fstream.close();
- return true;
- }
-
- catch(...)
- {
- return false;
- }
- }
-
-
bool get_file_size(const std::string& path_to_file, uint64_t &size)
{
#ifdef WIN32