summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-02-01 19:43:09 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-02-01 19:43:09 (GMT)
commit2da51e0f69caa8bbc05a4935fd8db504fcfdf9b0 (patch)
tree7f70c24df7c583046c81a78e921e2b075b2af2ef /Source/kwsys/SystemTools.cxx
parent3dd4a53d97e8b4726c732e39b67df1c0eb2cc7eb (diff)
downloadCMake-2da51e0f69caa8bbc05a4935fd8db504fcfdf9b0.zip
CMake-2da51e0f69caa8bbc05a4935fd8db504fcfdf9b0.tar.gz
CMake-2da51e0f69caa8bbc05a4935fd8db504fcfdf9b0.tar.bz2
STYLE: removed code accidently checked in
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 1a5a421..8abd751 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -2645,21 +2645,8 @@ kwsys_stl::string SystemTools::CollapseFullPath(const char* in_path,
path_components.begin(),
path_components.end());
- // remove any . components as they do nothing
- kwsys_stl::vector<kwsys_stl::string> clean_components;
- kwsys_stl::vector<kwsys_stl::string>::iterator i =
- out_components.begin();
- for (; i != out_components.end(); ++i)
- {
- if (*i != ".")
- {
- clean_components.push_back(*i);
- }
- }
-
-
// Transform the path back to a string.
- kwsys_stl::string newPath = SystemTools::JoinPath(clean_components);
+ kwsys_stl::string newPath = SystemTools::JoinPath(out_components);
// Update the translation table with this potentially new path. I am not
// sure why this line is here, it seems really questionable, but yet I