diff --git a/code/ryzom/server/src/general_utilities_service/gus_utils.cpp b/code/ryzom/server/src/general_utilities_service/gus_utils.cpp index 94b4fac5b..a5f98115a 100644 --- a/code/ryzom/server/src/general_utilities_service/gus_utils.cpp +++ b/code/ryzom/server/src/general_utilities_service/gus_utils.cpp @@ -45,74 +45,6 @@ using namespace NLNET; namespace GUS { - //----------------------------------------------------------------------------- - // cleanPath - convert a path to standardised format - //----------------------------------------------------------------------------- - - CSString cleanPath(const CSString& path,bool addTrailingSlash) - { - CSString result; - - // split the path up into its component elements - CVectorSString pathComponents; - path.unquoteIfQuoted().splitByOneOfSeparators("/\\",pathComponents,false,false,true,false,true); - - // iterate over path components collapsing '.' and '..' entries - for (uint32 i=0;i a:/bcd/efg/ (no change) - // - a:\bcd\efg => a:/bcd/efg/ - // - \bcd\\efg => /bcd/efg/ - // - \\bcd\efg => //bcd/efg/ - // - \bcd\.\efg => /bcd/efg/ - // - \bcd\..\efg => /efg/ - // - bcd\..\efg => efg/ - // - bcd\..\..\efg => ../efg/ - // - \bcd\..\..\efg => /efg/ (NOTE: the redundant '..' entry is lost due to leading '\') - // - NLMISC::CSString cleanPath(const NLMISC::CSString& path,bool addTrailingSlash); - - // execute a command on a remote service void executeRemoteCommand(NLNET::TServiceId sid,const NLMISC::CSString& cmdLine); void executeRemoteCommand(const char* serviceName,const NLMISC::CSString& cmdLine);