From: ageay Date: Fri, 19 Oct 2012 08:13:05 +0000 (+0000) Subject: Simplify useless lines X-Git-Tag: V6_main_FINAL~469 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d82da5d9491d0a6e27c82327758a13d30217115;p=tools%2Fmedcoupling.git Simplify useless lines --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index d8f87ad56..e352e4d1a 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -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 crTmp,crITmp; - crITmp.push_back(crI.back()); for(std::vector::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::const_iterator it=mappRev.begin();it!=mappRev.end();it++) (*it).second->decrRef(); }