From 087a077a242a4db8ce3546e1626fa541f9ab9ad3 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Fri, 11 Jun 2021 11:37:51 +0200 Subject: [PATCH] Remove useless function. --- source/grid/grid_tools.cc | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) 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; } -- 2.39.5