mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user