]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove useless function. 12440/head
authorLuca Heltai <luca.heltai@sissa.it>
Fri, 11 Jun 2021 09:37:51 +0000 (11:37 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Fri, 11 Jun 2021 09:37:51 +0000 (11:37 +0200)
source/grid/grid_tools.cc

index 990ada7cacaf00b9757d88bba874cb786f60c5b4..7b973c2f3688c1dd27035e6179483288de8e5549 100644 (file)
@@ -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<double, 1, boost::geometry::cs::cartesian>
-    create_boost_point(const Point<1> &p)
-    {
-      return boost::geometry::model::
-        point<double, 1, boost::geometry::cs::cartesian>(p[0]);
-    }
-
-    boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian>
-    create_boost_point(const Point<2> &p)
-    {
-      return {p[0], p[1]};
-    }
-
-    boost::geometry::model::point<double, 3, boost::geometry::cs::cartesian>
-    create_boost_point(const Point<3> &p)
-    {
-      return {p[0], p[1], p[2]};
-    }
-
-
   } // namespace internal
 
   template <int dim, template <int, int> 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;
       }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.