From: Luca Heltai Date: Fri, 11 Jun 2021 09:37:51 +0000 (+0200) Subject: Remove useless function. X-Git-Tag: v9.4.0-rc1~1232^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=087a077a242a4db8ce3546e1626fa541f9ab9ad3;p=dealii.git Remove useless function. --- diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 990ada7cac..7b973c2f36 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -2746,29 +2746,6 @@ namespace GridTools // return if the scalar product of a is larger. return (scalar_product_a > scalar_product_b); } - - - - boost::geometry::model::point - create_boost_point(const Point<1> &p) - { - return boost::geometry::model:: - point(p[0]); - } - - boost::geometry::model::point - create_boost_point(const Point<2> &p) - { - return {p[0], p[1]}; - } - - boost::geometry::model::point - create_boost_point(const Point<3> &p) - { - return {p[0], p[1], p[2]}; - } - - } // namespace internal template class MeshType, int spacedim> @@ -2809,8 +2786,8 @@ namespace GridTools !relevant_cell_bounding_boxes_rtree->empty()) { if (relevant_cell_bounding_boxes_rtree->qbegin( - boost::geometry::index::intersects(internal::create_boost_point( - p))) == relevant_cell_bounding_boxes_rtree->qend()) + boost::geometry::index::intersects(p)) == + relevant_cell_bounding_boxes_rtree->qend()) return cell_and_position; }