From 1bebb29745a60f9b8e86e4225a53f13394dbed53 Mon Sep 17 00:00:00 2001 From: secher Date: Wed, 16 May 2007 14:29:52 +0000 Subject: [PATCH] simplification of findnext --- src/ResourcesManager/SALOME_LoadRateManager.cxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ResourcesManager/SALOME_LoadRateManager.cxx b/src/ResourcesManager/SALOME_LoadRateManager.cxx index 516892506..42f08df99 100644 --- a/src/ResourcesManager/SALOME_LoadRateManager.cxx +++ b/src/ResourcesManager/SALOME_LoadRateManager.cxx @@ -47,15 +47,7 @@ string SALOME_LoadRateManager::FindNext(const Engines::MachineList& hosts,MapOfP ns->Change_Directory("/Containers"); vector vec = ns->list_directory_recurs(); - list lstCont; for(vector::iterator iter = vec.begin();iter!=vec.end();iter++){ - CORBA::Object_var obj=ns->Resolve((*iter).c_str()); - Engines::Container_var cont=Engines::Container::_narrow(obj); - if(!CORBA::is_nil(cont)){ - lstCont.push_back((*iter)); - } - } - for(list::iterator iter=lstCont.begin();iter!=lstCont.end();iter++){ CORBA::Object_var obj=ns->Resolve((*iter).c_str()); Engines::Container_var cont=Engines::Container::_narrow(obj); if(!CORBA::is_nil(cont)){ -- 2.39.2