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 }