diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-10 18:57:13 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-10 18:57:13 +0200 |
commit | 922412f5dc975b423757c1e248eac2813e48acb2 (patch) | |
tree | a3b15d185627d3c8b845beadee603c44b263e1d0 /src/task_ar.cc | |
parent | e73ee708292aac55070701ff0157db4eab6c06f4 (diff) |
Move some common functions to util.cc
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r-- | src/task_ar.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc index 84cda1b..06504f6 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -9,23 +9,7 @@ #include "libctor.h" #include "settings.h" #include "execute.h" - -namespace -{ -std::string readFile(const std::string &fileName) -{ - std::ifstream ifs(fileName.c_str(), - std::ios::in | std::ios::binary | std::ios::ate); - - std::ifstream::pos_type fileSize = ifs.tellg(); - ifs.seekg(0, std::ios::beg); - - std::vector<char> bytes(fileSize); - ifs.read(bytes.data(), fileSize); - - return std::string(bytes.data(), fileSize); -} -} // namespace :: +#include "util.h" TaskAR::TaskAR(const BuildConfiguration& config, const Settings& settings, |