From 58dad00aa58537af8812d8c57cfd6c1060bb167a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jul 2010 04:39:07 +0000 Subject: [PATCH] Path::isRootDirectory is unimplemented on Unix and not used, remove it, fixing PR6909. llvm-svn: 108125 --- include/llvm/System/Path.h | 8 -------- lib/System/Win32/Path.inc | 6 ------ 2 files changed, 14 deletions(-) diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index d4af478c6aa..0461769f971 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -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. diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 5a0052f3cb2..379527d4ebf 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -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, "/"); }