[llvm-commits] [llvm] r108125 - in /llvm/trunk: include/llvm/System/Path.h lib/System/Win32/Path.inc
Chris Lattner
sabre at nondot.org
Sun Jul 11 21:39:07 PDT 2010
Author: lattner
Date: Sun Jul 11 23:39:07 2010
New Revision: 108125
URL: http://llvm.org/viewvc/llvm-project?rev=108125&view=rev
Log:
Path::isRootDirectory is unimplemented on Unix and not used,
remove it, fixing PR6909.
Modified:
llvm/trunk/include/llvm/System/Path.h
llvm/trunk/lib/System/Win32/Path.inc
Modified: llvm/trunk/include/llvm/System/Path.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Path.h?rev=108125&r1=108124&r2=108125&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/Path.h (original)
+++ llvm/trunk/include/llvm/System/Path.h Sun Jul 11 23:39:07 2010
@@ -292,14 +292,6 @@
/// @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.
Modified: llvm/trunk/lib/System/Win32/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Path.inc?rev=108125&r1=108124&r2=108125&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Path.inc (original)
+++ llvm/trunk/lib/System/Win32/Path.inc Sun Jul 11 23:39:07 2010
@@ -281,12 +281,6 @@
// 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, "/");
}
More information about the llvm-commits
mailing list