diff options
author | chriseth <chris@ethereum.org> | 2018-10-18 06:48:07 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-18 18:50:06 +0800 |
commit | 0690aae09d1591b65d6808e6c6c547b63ddb3ce9 (patch) | |
tree | dbc55c01999b9f6f1448de2dceecda7ff4ffde56 /libdevcore/CommonIO.h | |
parent | 7609e2871e77b623d4c6187b7ebed693ce74cd0e (diff) | |
download | dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.tar.gz dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.tar.zst dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.zip |
Remove mostly unused writeFile implementation.
Diffstat (limited to 'libdevcore/CommonIO.h')
-rw-r--r-- | libdevcore/CommonIO.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libdevcore/CommonIO.h b/libdevcore/CommonIO.h index 928b6d15..b9f941ea 100644 --- a/libdevcore/CommonIO.h +++ b/libdevcore/CommonIO.h @@ -41,14 +41,6 @@ std::string readStandardInput(); /// Retrieve and returns a character from standard input (without waiting for EOL). int readStandardInputChar(); -/// Write the given binary data into the given file, replacing the file if it pre-exists. -/// Throws exception on error. -/// @param _writeDeleteRename useful not to lose any data: If set, first writes to another file in -/// the same directory and then moves that file. -void writeFile(std::string const& _file, bytesConstRef _data, bool _writeDeleteRename = false); -/// Write the given binary data into the given file, replacing the file if it pre-exists. -inline void writeFile(std::string const& _file, bytes const& _data, bool _writeDeleteRename = false) { writeFile(_file, bytesConstRef(&_data), _writeDeleteRename); } -inline void writeFile(std::string const& _file, std::string const& _data, bool _writeDeleteRename = false) { writeFile(_file, bytesConstRef(_data), _writeDeleteRename); } /// Converts arbitrary value to string representation using std::stringstream. template <class _T> std::string toString(_T const& _t) |