Skip to content

Commit

Permalink
Remove a dead code path.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Mar 2, 2009
1 parent 3634515 commit 9c16c50
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/MooseX/Method/Signatures.pm
Expand Up @@ -94,15 +94,13 @@ sub parser {
$self->shadow(sub {
my ($code, $name) = @_;

my $pkg = $compile_stash;
my $meth_name = defined $name ? $name : '__ANON__';
my $pkg = $compile_stash;
($pkg, $name) = $name =~ /^(.*)::([^:]+)$/
if $name =~ /::/;

($pkg, $meth_name) = $meth_name =~ /^(.*)::([^:]+)$/
if $meth_name =~ /::/;

my $meth = $create_meta_method->($code, $pkg, $meth_name);
my $meth = $create_meta_method->($code, $pkg, $name);
my $meta = Moose::Meta::Class->initialize($pkg);
$meta->add_method($meth_name => $meth);
$meta->add_method($name => $meth);
return;
});
}
Expand Down

0 comments on commit 9c16c50

Please sign in to comment.