diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 13:45:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 13:45:45 +0000 |
commit | 5d9d24daef53c7b9646da355297deda6753565a8 (patch) | |
tree | 101fc80afceaf24496fb7dc4b13ec02e9cb1bbf3 /lib/Support/Unix/Path.inc | |
parent | 621c80f4d714ff31ef9f9627b5fee499e466a9fd (diff) | |
download | llvm-5d9d24daef53c7b9646da355297deda6753565a8.tar.gz llvm-5d9d24daef53c7b9646da355297deda6753565a8.tar.bz2 llvm-5d9d24daef53c7b9646da355297deda6753565a8.tar.xz |
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 84a5751203..20e9642897 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -360,19 +360,6 @@ error_code create_hard_link(const Twine &to, const Twine &from) { return error_code::success(); } -error_code create_symlink(const Twine &to, const Twine &from) { - // Get arguments. - SmallString<128> from_storage; - SmallString<128> to_storage; - StringRef f = from.toNullTerminatedStringRef(from_storage); - StringRef t = to.toNullTerminatedStringRef(to_storage); - - if (::symlink(t.begin(), f.begin()) == -1) - return error_code(errno, system_category()); - - return error_code::success(); -} - error_code remove(const Twine &path, bool &existed) { SmallString<128> path_storage; StringRef p = path.toNullTerminatedStringRef(path_storage); |