summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileSystem.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-20 17:39:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-20 17:39:04 +0000
commitfaec753dd41d30a13f18b79a87a63a76bcca28c6 (patch)
tree3385ae541cc8fc74da8780de22e14db8b163beaf /include/llvm/Support/FileSystem.h
parentb5a1fccdc51461f022617343c7455623794cfb90 (diff)
downloadllvm-faec753dd41d30a13f18b79a87a63a76bcca28c6.tar.gz
llvm-faec753dd41d30a13f18b79a87a63a76bcca28c6.tar.bz2
llvm-faec753dd41d30a13f18b79a87a63a76bcca28c6.tar.xz
Remove dead and incorrect code.
is_symlink was always false since it was using stat instead of lstat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r--include/llvm/Support/FileSystem.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index c5c8415753..b511a8e203 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -454,8 +454,7 @@ inline bool is_regular_file(const Twine &Path) {
/// directory, regular file, or symlink?
///
/// @param status A file_status previously returned from status.
-/// @returns exists(s) && !is_regular_file(s) && !is_directory(s) &&
-/// !is_symlink(s)
+/// @returns exists(s) && !is_regular_file(s) && !is_directory(s)
bool is_other(file_status status);
/// @brief Is path something that exists but is not a directory,
@@ -468,21 +467,6 @@ bool is_other(file_status status);
/// platform specific error_code.
error_code is_other(const Twine &path, bool &result);
-/// @brief Does status represent a symlink?
-///
-/// @param status A file_status previously returned from stat.
-/// @returns status.type() == symlink_file.
-bool is_symlink(file_status status);
-
-/// @brief Is path a symlink?
-///
-/// @param path Input path.
-/// @param result Set to true if \a path is a symlink, false if it is not.
-/// Undefined otherwise.
-/// @returns errc::success if result has been successfully set, otherwise a
-/// platform specific error_code.
-error_code is_symlink(const Twine &path, bool &result);
-
/// @brief Get file status as if by POSIX stat().
///
/// @param path Input path.