From b1a3bd65ea78a24454917d71514f464c51834378 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 19 Sep 2013 16:19:47 +0200 Subject: [PATCH] Remove unused variable and add missing define --- xs/src/ExPolygon.cpp | 1 - xs/src/MultiPoint.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/ExPolygon.cpp b/xs/src/ExPolygon.cpp index e17db53ba..7a58e969e 100644 --- a/xs/src/ExPolygon.cpp +++ b/xs/src/ExPolygon.cpp @@ -57,7 +57,6 @@ ExPolygon::to_AV() { AV* av = newAV(); av_extend(av, num_holes); // -1 +1 - SV* sv = newSV(0); av_store(av, 0, this->contour.to_SV_ref()); for (unsigned int i = 0; i < num_holes; i++) { diff --git a/xs/src/MultiPoint.cpp b/xs/src/MultiPoint.cpp index aad03386c..06aaa0ef2 100644 --- a/xs/src/MultiPoint.cpp +++ b/xs/src/MultiPoint.cpp @@ -38,6 +38,7 @@ MultiPoint::first_point() const return new Point(this->points.front()); } +#ifdef SLIC3RXS void MultiPoint::from_SV(SV* poly_sv) { @@ -82,5 +83,6 @@ MultiPoint::to_SV_pureperl() const { } return newRV_noinc((SV*)av); } +#endif }