diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-01 18:16:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-01 18:16:02 +0000 |
commit | 7dbd783e906e5b83ed1fa5bb596524b39a47ae06 (patch) | |
tree | 2db6b8ec357cd41dde45e0fd9d1c543af19ae6a0 /llvm/lib/System/Unix | |
parent | ec905190bf344f785a11e4911034221b403ed19e (diff) | |
download | bcm5719-llvm-7dbd783e906e5b83ed1fa5bb596524b39a47ae06.tar.gz bcm5719-llvm-7dbd783e906e5b83ed1fa5bb596524b39a47ae06.zip |
Remove some now-dead methods. Use getFileStatus instead.
llvm-svn: 29447
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Path.inc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index 41349d940e2..83885c31b0d 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/lib/System/Unix/Path.inc @@ -236,38 +236,6 @@ Path::GetUserHomeDirectory() { return GetRootDirectory(); } -bool -Path::isFile() const { - if (!exists()) - return false; - struct stat buf; - if (stat(path.c_str(), &buf) != 0) { - ThrowErrno(path + ": can't determine type of path object: "); - } - return S_ISREG(buf.st_mode); -} - -bool -Path::isDirectory() const { - if (!exists()) - return false; - struct stat buf; - if (0 != stat(path.c_str(), &buf)) { - ThrowErrno(path + ": can't determine type of path object: "); - } - return S_ISDIR(buf.st_mode); -} - -bool -Path::isHidden() const { - if (!exists()) - return false; - size_t slash = path.rfind('/'); - return (slash != std::string::npos && - slash < path.length()-1 && - path[slash+1] == '.') || - (!path.empty() && slash == std::string::npos && path[0] == '.'); -} std::string Path::getBasename() const { @@ -432,8 +400,6 @@ void Path::makeExecutableOnDisk() { bool Path::getDirectoryContents(std::set<Path>& result) const { - if (!isDirectory()) - return false; DIR* direntries = ::opendir(path.c_str()); if (direntries == 0) ThrowErrno(path + ": can't open directory"); |