Skip to content

Commit

Permalink
changed boost::bind for std::bind, deleted unused headers
Browse files Browse the repository at this point in the history
  • Loading branch information
camolezi committed Jun 15, 2020
1 parent 442ae07 commit 5488e5d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions RecoTracker/TkDetLayers/src/CompositeTECPetal.cc
Expand Up @@ -14,11 +14,10 @@
#include "TkDetUtil.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"

#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <algorithm>
#include <numeric>
#include <functional>
#include <iterator>
#include <numeric>

using namespace std;

Expand All @@ -39,7 +38,7 @@ namespace {
std::transform(dets.begin(),
dets.end(),
boundaries.begin(),
boost::bind(&GlobalPoint::perp, boost::bind(&GeometricSearchDet::position, _1)));
std::bind(&GlobalPoint::perp, std::bind(&GeometricSearchDet::position, std::placeholders::_1)));
std::adjacent_difference(boundaries.begin(), boundaries.end(), boundaries.begin(), Mean());
}

Expand Down
1 change: 0 additions & 1 deletion RecoTracker/TkDetLayers/src/CompositeTECWedge.cc
Expand Up @@ -15,7 +15,6 @@

#include "TkDetUtil.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include <boost/function.hpp>

using namespace std;

Expand Down
2 changes: 0 additions & 2 deletions RecoTracker/TkDetLayers/src/GeometricSearchTrackerBuilder.cc
Expand Up @@ -16,8 +16,6 @@
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"

#include "DataFormats/Common/interface/Trie.h"
#include <boost/function.hpp>
#include <boost/bind.hpp>

using namespace std;

Expand Down
1 change: 0 additions & 1 deletion RecoTracker/TkDetLayers/src/Phase2EndcapRing.cc
Expand Up @@ -14,7 +14,6 @@

#include "TkDetUtil.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include <boost/function.hpp>

using namespace std;

Expand Down
1 change: 0 additions & 1 deletion RecoTracker/TkDetLayers/src/TIDRing.cc
Expand Up @@ -15,7 +15,6 @@

#include "TkDetUtil.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include <boost/function.hpp>

using namespace std;

Expand Down

0 comments on commit 5488e5d

Please sign in to comment.