diff options
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/posix/Path.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/Path.cpp b/qpid/cpp/src/qpid/sys/posix/Path.cpp index 984551379c..063e3cfc51 100644 --- a/qpid/cpp/src/qpid/sys/posix/Path.cpp +++ b/qpid/cpp/src/qpid/sys/posix/Path.cpp @@ -55,10 +55,6 @@ bool Path::exists () const { bool Path::isFile() const { return isFlag(path, S_IFREG); } bool Path::isDirectory() const { return isFlag(path, S_IFDIR); } - -bool Path::isAbsolute() const { - return (path.size() > 0 && (path[0] == separator[0] || path[0] == '/')) - || (path.size() > 1 && (isalpha(path[0]) && path[1] == ':')); -} +bool Path::isAbsolute() const { return (path.size() > 0 && path[0] == separator[0]); } }} // namespace qpid::sys |
