diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-08 21:35:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-08 21:35:52 +0000 |
commit | 7e774c249f3435d005f9d8e1405e088acc18b4bb (patch) | |
tree | 011caed978c5db15bb20a549a80dcbde7899de23 /llvm/lib/Support/Unix/Path.inc | |
parent | f60022375490c11834e74670b966ff88f7af4582 (diff) | |
download | llvm-7e774c249f3435d005f9d8e1405e088acc18b4bb.zip llvm-7e774c249f3435d005f9d8e1405e088acc18b4bb.tar.gz llvm-7e774c249f3435d005f9d8e1405e088acc18b4bb.tar.bz2 |
Remove dead code. Fixes pr20544.
llvm-svn: 215243
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 623547a..64ea23c 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -272,19 +272,6 @@ std::error_code create_directory(const Twine &path, bool IgnoreExisting) { return std::error_code(); } -std::error_code normalize_separators(SmallVectorImpl<char> &Path) { - for (auto PI = Path.begin(), PE = Path.end(); PI < PE; ++PI) { - if (*PI == '\\') { - auto PN = PI + 1; - if (PN < PE && *PN == '\\') - ++PI; // increment once, the for loop will move over the escaped slash - else - *PI = '/'; - } - } - return std::error_code(); -} - // Note that we are using symbolic link because hard links are not supported by // all filesystems (SMB doesn't). std::error_code create_link(const Twine &to, const Twine &from) { |