Skip to content

Commit

Permalink
another batch
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Sep 26, 2024
1 parent deee093 commit af0a79e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 1 addition & 3 deletions AABB_tree/demo/AABB_tree/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,7 @@ void Scene::cutting_plane(bool override)
return;
}

// Should not be here
std::cerr << "Unknown cut_plane type" << std::endl;
CGAL_assertion(false);
CGAL_unreachable();
}
}

Expand Down
7 changes: 1 addition & 6 deletions Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,7 @@ Mesh_domain_with_polyline_features_3<MD_>::
point_corner_index(const Point_3& p) const
{
typename Corners::const_iterator p_index_it = corners_.find(p);
if ( p_index_it == corners_.end() )
{
CGAL_assertion(false);
return Index();
}

CGAL_assertion( p_index_it != corners_.end());
return p_index_it->second;
}

Expand Down
3 changes: 1 addition & 2 deletions Triangulation_2/include/CGAL/Delaunay_triangulation_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ class Delaunay_triangulation_2
pit = propagate_conflicts(p,fh,2,pit);
return pit;
}
CGAL_assertion(false);
return std::make_pair(fit,eit);
CGAL_unreachable();
}

template <class OutputItFaces>
Expand Down
3 changes: 1 addition & 2 deletions Triangulation_2/include/CGAL/Regular_triangulation_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,7 @@ class Regular_triangulation_2
}
return make_triple(fit, eit, vit);
}
CGAL_assertion(false);
return make_triple(fit, eit, vit);
CGAL_unreachable();
}

template <class OutputItFaces, class OutputItBoundaryEdges>
Expand Down

0 comments on commit af0a79e

Please sign in to comment.