mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Path::isRootDirectory is unimplemented on Unix and not used,
remove it, fixing PR6909. llvm-svn: 108125
This commit is contained in:
parent
16319e45c6
commit
58dad00aa5
@ -292,14 +292,6 @@ namespace sys {
|
||||
/// @name Disk Accessors
|
||||
/// @{
|
||||
public:
|
||||
/// This function determines if the path name in this object references
|
||||
/// the root (top level directory) of the file system. The details of what
|
||||
/// is considered the "root" may vary from system to system so this method
|
||||
/// will do the necessary checking.
|
||||
/// @returns true iff the path name references the root directory.
|
||||
/// @brief Determines if the path references the root directory.
|
||||
bool isRootDirectory() const;
|
||||
|
||||
/// This function determines if the path name is absolute, as opposed to
|
||||
/// relative.
|
||||
/// @brief Determine if the path is absolute.
|
||||
|
@ -281,12 +281,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
|
||||
// FIXME: the above set of functions don't map to Windows very well.
|
||||
|
||||
|
||||
bool
|
||||
Path::isRootDirectory() const {
|
||||
size_t len = path.size();
|
||||
return len > 0 && path[len-1] == '/';
|
||||
}
|
||||
|
||||
StringRef Path::getDirname() const {
|
||||
return getDirnameCharSep(path, "/");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user