From 2da51e0f69caa8bbc05a4935fd8db504fcfdf9b0 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 1 Feb 2007 14:43:09 -0500 Subject: [PATCH] STYLE: removed code accidently checked in --- Source/kwsys/SystemTools.cxx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 1a5a42164..8abd75186 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 clean_components; - kwsys_stl::vector::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