From 23f2926af1a757f1dc7d24c68cd1772e6b2fc195 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 30 Oct 2020 13:58:15 -0500 Subject: [PATCH] Removing unused bounding box methods. --- include/openmc/surface.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/openmc/surface.h b/include/openmc/surface.h index 5ef903f527..def7cb1eba 100644 --- a/include/openmc/surface.h +++ b/include/openmc/surface.h @@ -75,24 +75,6 @@ struct BoundingBox return *this; } - // ensure bounding box contains a point - inline void update(const Position& r) { - xmin = std::min(xmin, r.x); - xmax = std::max(xmax, r.x); - ymin = std::min(ymin, r.y); - ymax = std::max(ymax, r.y); - zmin = std::min(zmin, r.z); - zmax = std::max(zmax, r.z); - } - - // check if a point is in the box - inline bool contains(const Position& r) const { - if (r.x < xmin || r.x > xmax) { return false; } - if (r.y < ymin || r.y > ymax) { return false; } - if (r.z < zmin || r.z > zmax) { return false; } - return true; - } - }; //==============================================================================