From 21e4a27fb572c86d5c17a4eb712df31a8034b5d4 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 1 Jun 2016 14:24:05 +0200 Subject: [PATCH] [GL] Triangle: Rm unused constructor and attribute. --- GeoLib/Triangle.cpp | 9 --------- GeoLib/Triangle.h | 6 ------ 2 files changed, 15 deletions(-) diff --git a/GeoLib/Triangle.cpp b/GeoLib/Triangle.cpp index a6edac30a85..f29e4568a54 100644 --- a/GeoLib/Triangle.cpp +++ b/GeoLib/Triangle.cpp @@ -21,15 +21,6 @@ namespace GeoLib { -Triangle::Triangle (std::vector<Point *> const &pnt_vec) : - _pnts(pnt_vec), _initialized (false) -{ - assert(!_pnts.empty()); - _pnt_ids[0] = std::numeric_limits<std::size_t>::max(); - _pnt_ids[1] = std::numeric_limits<std::size_t>::max(); - _pnt_ids[2] = std::numeric_limits<std::size_t>::max(); -} - Triangle::Triangle (std::vector<Point *> const &pnt_vec, std::size_t pnt_a, std::size_t pnt_b, std::size_t pnt_c) : _pnts(pnt_vec), _initialized (true) diff --git a/GeoLib/Triangle.h b/GeoLib/Triangle.h index 49841436d0b..b137ad69059 100644 --- a/GeoLib/Triangle.h +++ b/GeoLib/Triangle.h @@ -31,11 +31,6 @@ class Point; class Triangle { public: - /** - * construction of object, initialization of reference to point vector - */ - Triangle (std::vector<Point *> const &pnt_vec); - /** * construction of object, initialization of reference to point vector, * saves the three indices describing a triangle @@ -84,7 +79,6 @@ protected: const std::vector<Point*> &_pnts; /** position of pointers to the geometric points */ std::size_t _pnt_ids[3]; - bool _initialized; }; void getPlaneCoefficients(Triangle const& tri, double c[3]); -- GitLab