Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed May 11, 2017
1 parent cbd73f4 commit d9c634e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ namespace CGAL {
Vector_3 d = this->constr_vec(m_apex, this->point(indices[0]));
FT v = this->scalar_pdct(d, m_axis) / m_cos_ang;
FT phi = atan2(this->scalar_pdct(d, d2), this->scalar_pdct(d, d1));
FT radPerDist = -m_neg_sin_ang * v;
FT u = FT(phi + CGAL_PI);// * radPerDist;
FT u = FT(phi + CGAL_PI);
FT avg_v = v;

min[0] = max[0] = u;
Expand All @@ -436,8 +435,7 @@ namespace CGAL {
d = this->constr_vec(m_apex, this->point(indices[i]));
v = this->scalar_pdct(d, m_axis) / m_cos_ang;
phi = atan2(this->scalar_pdct(d, d2), this->scalar_pdct(d, d1));
radPerDist = -m_neg_sin_ang * v;
u = FT(phi + CGAL_PI);// * radPerDist;
u = FT(phi + CGAL_PI);

min[0] = (std::min<FT>)(min[0], u);
max[0] = (std::max<FT>)(max[0], u);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,6 @@ namespace CGAL {

while(first < last) {
// find first above threshold
Point_3 p1 = get(m_point_pmap, *this->at(first));
FT v1 = get_coord(p1, static_cast<unsigned int>(dimension));
while (get_coord(
get(m_point_pmap, *this->at(first)),
static_cast<unsigned int>(dimension)) < threshold
Expand All @@ -680,8 +678,6 @@ namespace CGAL {
}

// find last below threshold
p1 = get(m_point_pmap, *this->at(last));
v1 = get_coord(p1, static_cast<unsigned int>(dimension));
while (get_coord(
get(m_point_pmap, *this->at(last)),
static_cast<unsigned int>(dimension)) >= threshold
Expand All @@ -698,10 +694,6 @@ namespace CGAL {
}

this->swap(first, last);
p1 = get(m_point_pmap, *this->at(first));
v1 = get_coord(p1, static_cast<unsigned int>(dimension));
p1 = get(m_point_pmap, *this->at(last));
v1 = get_coord(p1, static_cast<unsigned int>(dimension));
first++;
last--;
}
Expand Down

0 comments on commit d9c634e

Please sign in to comment.