Skip to content

Commit

Permalink
Remove unnecessary calls to vector::empty() and vector::clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Apr 26, 2019
1 parent 8808890 commit e727819
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Expand Up @@ -26,8 +26,6 @@ CmsTrackerPhase1DiskBuilder::PhiPosNegSplit_innerOuter( std::vector< GeometricDe

// now put positive phi (in order) ahead of negative phi as in std geometry
std::vector<const GeometricDet*> theCompsPosNeg;
theCompsPosNeg.empty();
theCompsPosNeg.clear();
// also find the average radius (used to split inner and outer disk panels)
double theRmin = (**begin).rho();
double theRmax = theRmin;
Expand All @@ -47,8 +45,6 @@ CmsTrackerPhase1DiskBuilder::PhiPosNegSplit_innerOuter( std::vector< GeometricDe
// force the split radius to be 100 mm to be able to deal with disks with only outer ring
double radius_split = 100.;
std::vector<const GeometricDet*> theCompsInnerOuter;
theCompsInnerOuter.empty();
theCompsInnerOuter.clear();
unsigned int num_inner = 0;
for(vector<const GeometricDet*>::const_iterator it=theCompsPosNeg.begin();
it!=theCompsPosNeg.end();it++){
Expand Down
Expand Up @@ -26,8 +26,6 @@ CmsTrackerPhase2TPDiskBuilder::PhiPosNegSplit_innerOuter( std::vector< Geometric

// now put positive phi (in order) ahead of negative phi as in std geometry
std::vector<const GeometricDet*> theCompsPosNeg;
theCompsPosNeg.empty();
theCompsPosNeg.clear();
// also find the average radius (used to split inner and outer disk panels)
double theRmin = (**begin).rho();
double theRmax = theRmin;
Expand All @@ -47,8 +45,6 @@ CmsTrackerPhase2TPDiskBuilder::PhiPosNegSplit_innerOuter( std::vector< Geometric
// force the split radius to be 100 mm to be able to deal with disks with only outer ring
double radius_split = 100.;
std::vector<const GeometricDet*> theCompsInnerOuter;
theCompsInnerOuter.empty();
theCompsInnerOuter.clear();
unsigned int num_inner = 0;
for(vector<const GeometricDet*>::const_iterator it=theCompsPosNeg.begin();
it!=theCompsPosNeg.end();it++){
Expand Down

0 comments on commit e727819

Please sign in to comment.