Removed useless Polygon constructor and some cleanup
This commit is contained in:
parent
5a78111efa
commit
efdf266df1
2 changed files with 5 additions and 26 deletions
|
@ -22,6 +22,11 @@ sub new {
|
|||
$self;
|
||||
}
|
||||
|
||||
sub clone {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(map $_->clone, @$self);
|
||||
}
|
||||
|
||||
sub serialize {
|
||||
my $self = shift;
|
||||
my $s = \ pack 'l*', map @$_, @$self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue