]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Simplify useless lines
authorageay <ageay>
Fri, 19 Oct 2012 08:13:05 +0000 (08:13 +0000)
committerageay <ageay>
Fri, 19 Oct 2012 08:13:05 +0000 (08:13 +0000)
src/MEDCoupling/MEDCouplingUMesh.cxx

index d8f87ad56216febabd1b67931b1a43b818c7b675..e352e4d1a96cf753b326f7c1cf11900e035c24e1 100644 (file)
@@ -6707,8 +6707,6 @@ void MEDCouplingUMesh::BuildIntersecting2DCellsFromEdges(double eps, const MEDCo
       MEDCouplingUMeshBuildQPFromMesh3(coo1,offset1,coo2,offset2,addCoords,desc1+descIndx1[i],desc1+descIndx1[i+1],intesctEdges1,/* output */mapp,mappRev);
       pol1.buildFromCrudeDataArray(mappRev,cm.isQuadratic(),conn1+connI1[i]+1,coo1,
                                    desc1+descIndx1[i],desc1+descIndx1[i+1],intesctEdges1);
-      std::vector<int> crTmp,crITmp;
-      crITmp.push_back(crI.back());
       for(std::vector<int>::const_iterator it2=candidates2.begin();it2!=candidates2.end();it2++)
         {
           INTERP_KERNEL::QuadraticPolygon pol2;
@@ -6721,11 +6719,6 @@ void MEDCouplingUMesh::BuildIntersecting2DCellsFromEdges(double eps, const MEDCo
           //MEDCouplingUMeshAssignOnLoc(pol1,pol2,desc1+descIndx1[i],desc1+descIndx1[i+1],intesctEdges1,desc2+descIndx2[*it2],desc2+descIndx2[*it2+1],intesctEdges2,colinear2);
           pol1.buildPartitionsAbs(pol2,mapp,i,*it2,offset3,addCoordsQuadratic,cr,crI,cNb1,cNb2);
         }
-      if(!crTmp.empty())
-        {
-          cr.insert(cr.end(),crTmp.begin(),crTmp.end());
-          crI.insert(crI.end(),crITmp.begin()+1,crITmp.end());
-        }
       for(std::map<int,INTERP_KERNEL::Node *>::const_iterator it=mappRev.begin();it!=mappRev.end();it++)
         (*it).second->decrRef();
     }