summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-06-06 12:46:58 -0230
committerBenoit Foucher <benoit@zeroc.com>2008-06-06 17:54:49 +0200
commita9169f12e8417b91a7dcfea3b678d09ed2697b62 (patch)
tree2e072cc1d8319a7ce213590e9e15c719f5b29ab9 /cpp/src/IcePatch2/Util.cpp
parent- Fixed bug 3242 (diff)
downloadice-a9169f12e8417b91a7dcfea3b678d09ed2697b62.tar.bz2
ice-a9169f12e8417b91a7dcfea3b678d09ed2697b62.tar.xz
ice-a9169f12e8417b91a7dcfea3b678d09ed2697b62.zip
Bug 3014 - isAbsolute incorrect
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r--cpp/src/IcePatch2/Util.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp
index 86901d6857e..2b572c27e57 100644
--- a/cpp/src/IcePatch2/Util.cpp
+++ b/cpp/src/IcePatch2/Util.cpp
@@ -309,26 +309,6 @@ IcePatch2::simplify(const string& path)
}
bool
-IcePatch2::isAbsolute(const string& pa)
-{
- if(pa.empty())
- {
- return false;
- }
-
- unsigned i = 0;
- while(isspace(pa[i]))
- {
- ++i;
- }
-#ifdef _WIN32
- return pa[i] == '\\' || pa[i] == '/' || pa.size() > i + 1 && isalpha(pa[i]) && pa[i + 1] == ':';
-#else
- return pa[i] == '/';
-#endif
-}
-
-bool
IcePatch2::isRoot(const string& pa)
{
string path = simplify(pa);