]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/ForEachLoop.cxx
Salome HOME
Issue EDF13766 : link internal pyobj inside a foreach to a list[pyobj] to a sampleCol...
[modules/yacs.git] / src / engine / ForEachLoop.cxx
index b1b86d4f575a43e38937d084fd76145cee0fe05e..54535a140d33a0fc73d74d506e73d1821ecdb437 100644 (file)
@@ -1207,16 +1207,7 @@ int ForEachLoop::getFEDeltaBetween(OutPort *start, InPort *end)
         ret++;
       work=work->getFather();
     }
-  work=ne;
-  int delta(0);
-  while(work!=co)
-    {
-      ForEachLoop *isFE(dynamic_cast<ForEachLoop *>(work));
-      if(isFE)
-        delta++;
-      work=work->getFather();
-    }
   if(dynamic_cast<AnySplitOutputPort *>(start))
     ret--;
-  return ret-delta;
+  return ret;
 }