diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-09-26 21:53:01 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-09-26 21:53:01 +0400 |
commit | b61b543243fdc67fbfb0726cda3faafbe77d57ea (patch) | |
tree | 2a0a90fba11af40832d1c126d00e65587d4bf878 /lib/Slic3r/Surface.pm | |
parent | 81085433fd0c70b9a2566dedd46a6bd8bf398ded (diff) |
Minor cleanups
Diffstat (limited to 'lib/Slic3r/Surface.pm')
-rw-r--r-- | lib/Slic3r/Surface.pm | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Slic3r/Surface.pm b/lib/Slic3r/Surface.pm index 7e99f3f24..dcd96a0d5 100644 --- a/lib/Slic3r/Surface.pm +++ b/lib/Slic3r/Surface.pm @@ -28,21 +28,6 @@ sub add_hole { push @{ $self->holes }, $hole; } -sub new_from_mgp { - my $self = shift; - my ($polygon, %params) = @_; - - my ($contour_p, @holes_p) = @{ $polygon->polygons }; - - return __PACKAGE__->new( - contour => Slic3r::Polyline::Closed->cast($contour_p), - holes => [ - map Slic3r::Polyline::Closed->cast($_), @holes_p - ], - %params, - ); -} - sub id { my $self = shift; return $self->contour->id; |