Cleaner clone() implementation

This commit is contained in:
Alessandro Ranellucci 2013-07-14 13:11:01 +02:00
parent 399bc80899
commit 0099218f61
3 changed files with 4 additions and 6 deletions

View file

@ -15,8 +15,6 @@ package Slic3r::ExPolygon::XS;
use overload
'@{}' => sub { $_[0]->arrayref };
sub clone { (ref $_[0])->_clone($_[0]) }
# to handle legacy code
sub rotate {
my $self = shift;
@ -30,8 +28,6 @@ package Slic3r::ExPolygon::Collection;
use overload
'@{}' => sub { $_[0]->arrayref };
sub clone { (ref $_[0])->_clone($_[0]) }
package Slic3r::Surface;
sub new {