diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2019-01-19 01:59:32 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2019-01-19 01:59:32 +0800 |
commit | 8c97fb1688f7d756c783c65504f400c7f5f5f7e5 (patch) | |
tree | 1e8e2189e11d3dbbbd3163ca2ee061e963bd112f /libdevcore/CommonIO.cpp | |
parent | 127c78ee64f3ad2c301d6805d96cb153df3eeeee (diff) | |
download | dexon-solidity-8c97fb1688f7d756c783c65504f400c7f5f5f7e5.tar.gz dexon-solidity-8c97fb1688f7d756c783c65504f400c7f5f5f7e5.tar.zst dexon-solidity-8c97fb1688f7d756c783c65504f400c7f5f5f7e5.zip |
Remove boost::filesystem::weakly_canonical workaround
Diffstat (limited to 'libdevcore/CommonIO.cpp')
-rw-r--r-- | libdevcore/CommonIO.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libdevcore/CommonIO.cpp b/libdevcore/CommonIO.cpp index cc730575..29b31ebc 100644 --- a/libdevcore/CommonIO.cpp +++ b/libdevcore/CommonIO.cpp @@ -128,26 +128,6 @@ int dev::readStandardInputChar() return cin.get(); } -boost::filesystem::path dev::weaklyCanonicalFilesystemPath(boost::filesystem::path const &_path) -{ - if (boost::filesystem::exists(_path)) - return boost::filesystem::canonical(_path); - else - { - boost::filesystem::path head(_path); - boost::filesystem::path tail; - for (auto it = --_path.end(); !head.empty(); --it) - { - if (boost::filesystem::exists(head)) - break; - tail = (*it) / tail; - head.remove_filename(); - } - head = boost::filesystem::canonical(head); - return head / tail; - } -} - string dev::absolutePath(string const& _path, string const& _reference) { boost::filesystem::path p(_path); |