Remove some unused functions as reported by cppcheck (#4743)
This commit is contained in:
@@ -817,9 +817,6 @@ class DistColMaker : public ColMaker {
|
||||
this->position_[ridx] = nid;
|
||||
}
|
||||
}
|
||||
inline const int* GetLeafPosition() const {
|
||||
return dmlc::BeginPtr(this->position_);
|
||||
}
|
||||
|
||||
protected:
|
||||
void SetNonDefaultPosition(const std::vector<int> &qexpand, DMatrix *p_fmat,
|
||||
|
||||
@@ -96,16 +96,6 @@ class HistMaker: public BaseMaker {
|
||||
hset[tid].data.resize(cut.size(), GradStats());
|
||||
}
|
||||
}
|
||||
// aggregate all statistics to hset[0]
|
||||
inline void Aggregate() {
|
||||
bst_omp_uint nsize = static_cast<bst_omp_uint>(cut.size());
|
||||
#pragma omp parallel for schedule(static)
|
||||
for (bst_omp_uint i = 0; i < nsize; ++i) {
|
||||
for (size_t tid = 1; tid < hset.size(); ++tid) {
|
||||
hset[0].data[i].Add(hset[tid].data[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
/*! \brief clear the workspace */
|
||||
inline void Clear() {
|
||||
cut.clear(); rptr.resize(1); rptr[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user