Cleaner clone() implementation
This commit is contained in:
parent
399bc80899
commit
0099218f61
3 changed files with 4 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue