From: Shawn M Moore Date: Fri, 17 Apr 2009 03:41:20 +0000 (-0400) Subject: Don't define new() in this benchmark, make_immutable creates one X-Git-Tag: 0.82~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1d9507b6b03014d2c6f9dab49cb27a7728bde094;p=gitmo%2FClass-MOP.git Don't define new() in this benchmark, make_immutable creates one --- diff --git a/bench/lib/MOP/Immutable/Point.pm b/bench/lib/MOP/Immutable/Point.pm index 7694f98..d19d3a9 100644 --- a/bench/lib/MOP/Immutable/Point.pm +++ b/bench/lib/MOP/Immutable/Point.pm @@ -8,11 +8,6 @@ use metaclass; __PACKAGE__->meta->add_attribute('x' => (accessor => 'x', default => 10)); __PACKAGE__->meta->add_attribute('y' => (accessor => 'y')); -sub new { - my $class = shift; - $class->meta->new_object(@_); -} - sub clear { my $self = shift; $self->x(0); @@ -23,4 +18,4 @@ __PACKAGE__->meta->make_immutable; 1; -__END__ \ No newline at end of file +__END__