From e72781906c7c3571c16da2a1f3b584b06c3a33e1 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Fri, 26 Apr 2019 14:36:07 -0500 Subject: [PATCH] Remove unnecessary calls to vector::empty() and vector::clear() --- .../plugins/CmsTrackerPhase1DiskBuilder.cc | 4 ---- .../plugins/CmsTrackerPhase2TPDiskBuilder.cc | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase1DiskBuilder.cc b/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase1DiskBuilder.cc index 5f31415b14711..99e6663a3c557 100644 --- a/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase1DiskBuilder.cc +++ b/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase1DiskBuilder.cc @@ -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 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; @@ -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 theCompsInnerOuter; - theCompsInnerOuter.empty(); - theCompsInnerOuter.clear(); unsigned int num_inner = 0; for(vector::const_iterator it=theCompsPosNeg.begin(); it!=theCompsPosNeg.end();it++){ diff --git a/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase2TPDiskBuilder.cc b/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase2TPDiskBuilder.cc index 89635baa65bda..9d5fedda2db4f 100644 --- a/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase2TPDiskBuilder.cc +++ b/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPhase2TPDiskBuilder.cc @@ -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 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; @@ -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 theCompsInnerOuter; - theCompsInnerOuter.empty(); - theCompsInnerOuter.clear(); unsigned int num_inner = 0; for(vector::const_iterator it=theCompsPosNeg.begin(); it!=theCompsPosNeg.end();it++){