Remove dead and incorrect code.
[oota-llvm.git] / lib / Support / Path.cpp
index 895e81f4946d2b53814cb9108a6ef143da071ef9..5b73631d9896b5a5e257e49c3f918b6c3865e7e4 100644 (file)
@@ -870,23 +870,10 @@ error_code is_regular_file(const Twine &path, bool &result) {
   return error_code::success();
 }
 
-bool is_symlink(file_status status) {
-  return status.type() == file_type::symlink_file;
-}
-
-error_code is_symlink(const Twine &path, bool &result) {
-  file_status st;
-  if (error_code ec = status(path, st))
-    return ec;
-  result = is_symlink(st);
-  return error_code::success();
-}
-
 bool is_other(file_status status) {
   return exists(status) &&
          !is_regular_file(status) &&
-         !is_directory(status) &&
-         !is_symlink(status);
+         !is_directory(status);
 }
 
 void directory_entry::replace_filename(const Twine &filename, file_status st) {