Remove GetRootDirectory.

llvm-svn: 183775
This commit is contained in:
Rafael Espindola 2013-06-11 19:13:52 +00:00
parent 05db523f3c
commit 75f89f5225
3 changed files with 0 additions and 24 deletions

View File

@ -92,15 +92,6 @@ namespace sys {
/// @name Constructors
/// @{
public:
/// Construct a path to the root directory of the file system. The root
/// directory is a top level directory above which there are no more
/// directories. For example, on UNIX, the root directory is /. On Windows
/// it is file:///. Other operating systems may have different notions of
/// what the root directory is or none at all. In that case, a consistent
/// default root directory will be used.
LLVM_ATTRIBUTE_DEPRECATED(static Path GetRootDirectory(),
LLVM_PATH_DEPRECATED_MSG(NOTHING));
/// Construct a path to a unique temporary directory that is created in
/// a "standard" place for the operating system. The directory is
/// guaranteed to be created on exit from this function. If the directory

View File

@ -124,13 +124,6 @@ Path::isAbsolute() const {
return path[0] == '/';
}
Path
Path::GetRootDirectory() {
Path result;
result.set("/");
return result;
}
Path
Path::GetTemporaryDirectory(std::string *ErrMsg) {
#if defined(HAVE_MKDTEMP)

View File

@ -233,14 +233,6 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) {
return *TempDirectory;
}
// FIXME: the following set of functions don't map to Windows very well.
Path
Path::GetRootDirectory() {
// This is the only notion that that Windows has of a root directory. Nothing
// is here except for drives.
return Path("file:///");
}
Path
Path::GetCurrentDirectory() {
char pathname[MAX_PATH];