Remove unused variable and add missing define

This commit is contained in:
Alessandro Ranellucci 2013-09-19 16:19:47 +02:00
parent 197cd8e68b
commit b1a3bd65ea
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,6 @@ ExPolygon::to_AV() {
AV* av = newAV(); AV* av = newAV();
av_extend(av, num_holes); // -1 +1 av_extend(av, num_holes); // -1 +1
SV* sv = newSV(0);
av_store(av, 0, this->contour.to_SV_ref()); av_store(av, 0, this->contour.to_SV_ref());
for (unsigned int i = 0; i < num_holes; i++) { for (unsigned int i = 0; i < num_holes; i++) {

View File

@ -38,6 +38,7 @@ MultiPoint::first_point() const
return new Point(this->points.front()); return new Point(this->points.front());
} }
#ifdef SLIC3RXS
void void
MultiPoint::from_SV(SV* poly_sv) MultiPoint::from_SV(SV* poly_sv)
{ {
@ -82,5 +83,6 @@ MultiPoint::to_SV_pureperl() const {
} }
return newRV_noinc((SV*)av); return newRV_noinc((SV*)av);
} }
#endif
} }