Don't define new() in this benchmark, make_immutable creates one
Shawn M Moore [Fri, 17 Apr 2009 03:41:20 +0000 (23:41 -0400)]
bench/lib/MOP/Immutable/Point.pm

index 7694f98..d19d3a9 100644 (file)
@@ -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__