From 66ff9552523ec9285da01fe5995f2604bb8f54b5 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Fri, 13 Apr 2018 19:29:10 +0200 Subject: [PATCH] Remove unused parameter from CreateAdvancingFront, fix #3 --- poly2tri/sweep/sweep.cc | 2 +- poly2tri/sweep/sweep_context.cc | 3 +-- poly2tri/sweep/sweep_context.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/poly2tri/sweep/sweep.cc b/poly2tri/sweep/sweep.cc index 2f4cf24..21f76ce 100644 --- a/poly2tri/sweep/sweep.cc +++ b/poly2tri/sweep/sweep.cc @@ -42,7 +42,7 @@ namespace p2t { void Sweep::Triangulate(SweepContext& tcx) { tcx.InitTriangulation(); - tcx.CreateAdvancingFront(nodes_); + tcx.CreateAdvancingFront(); // Sweep points; build mesh SweepPoints(tcx); // Clean up diff --git a/poly2tri/sweep/sweep_context.cc b/poly2tri/sweep/sweep_context.cc index a9f1fdf..4c490a6 100644 --- a/poly2tri/sweep/sweep_context.cc +++ b/poly2tri/sweep/sweep_context.cc @@ -120,10 +120,9 @@ Node& SweepContext::LocateNode(const Point& point) return *front_->LocateNode(point.x); } -void SweepContext::CreateAdvancingFront(const std::vector& nodes) +void SweepContext::CreateAdvancingFront() { - (void) nodes; // Initial triangle Triangle* triangle = new Triangle(*points_[0], *tail_, *head_); diff --git a/poly2tri/sweep/sweep_context.h b/poly2tri/sweep/sweep_context.h index ba0d065..8ea2b77 100644 --- a/poly2tri/sweep/sweep_context.h +++ b/poly2tri/sweep/sweep_context.h @@ -70,7 +70,7 @@ Node& LocateNode(const Point& point); void RemoveNode(Node* node); -void CreateAdvancingFront(const std::vector& nodes); +void CreateAdvancingFront(); /// Try to map a node to all sides of this triangle that don't have a neighbor void MapTriangleToNodes(Triangle& t);