aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/PathV1.h7
-rw-r--r--lib/Support/Unix/Path.inc8
-rw-r--r--lib/Support/Windows/Path.inc18
3 files changed, 0 insertions, 33 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index 9bce3be..4a4816b 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -219,13 +219,6 @@ namespace sys {
/// @name Disk Accessors
/// @{
public:
- /// This function determines if the path name is absolute, as opposed to
- /// relative.
- /// @brief Determine if the path is absolute.
- LLVM_ATTRIBUTE_DEPRECATED(
- static bool isAbsolute(const char *NameStart, unsigned NameLen),
- LLVM_PATH_DEPRECATED_MSG(path::is_absolute));
-
/// This function opens the file associated with the path name provided by
/// the Path object and reads its magic number. If the magic number at the
/// start of the file matches \p magic, true is returned. In all other
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index ea8a050..ecdc2ab 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -109,14 +109,6 @@ Path::isValid() const {
return !path.empty();
}
-bool
-Path::isAbsolute(const char *NameStart, unsigned NameLen) {
- assert(NameStart);
- if (NameLen == 0)
- return false;
- return NameStart[0] == '/';
-}
-
Path
Path::GetTemporaryDirectory(std::string *ErrMsg) {
#if defined(HAVE_MKDTEMP)
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 7cf522d..165c18f 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -150,24 +150,6 @@ void Path::makeAbsolute() {
}
}
-bool
-Path::isAbsolute(const char *NameStart, unsigned NameLen) {
- assert(NameStart);
- // FIXME: This does not handle correctly an absolute path starting from
- // a drive letter or in UNC format.
- switch (NameLen) {
- case 0:
- return false;
- case 1:
- case 2:
- return NameStart[0] == '/';
- default:
- return
- (NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/')) ||
- (NameStart[0] == '\\' || (NameStart[1] == ':' && NameStart[2] == '\\'));
- }
-}
-
static Path *TempDirectory;
Path