From: Tomas Doran Date: Sat, 25 Jul 2009 21:05:19 +0000 (+0000) Subject: Remove dead and unused method X-Git-Tag: 5.80008~53 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=69811e0bae66c3d1139f5fb745b9cbbee7e326ef Remove dead and unused method --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 649fff5..56ee510 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1606,25 +1606,6 @@ sub _stats_finish_execute { $c->stats->profile( end => $info ); } -=head2 $c->_localize_fields( sub { }, \%keys ); - -=cut - -#Why does this exist? This is no longer safe and WILL NOT WORK. -# it doesnt seem to be used anywhere. can we remove it? -sub _localize_fields { - my ( $c, $localized, $code ) = ( @_ ); - - my $request = delete $localized->{request} || {}; - my $response = delete $localized->{response} || {}; - - local @{ $c }{ keys %$localized } = values %$localized; - local @{ $c->request }{ keys %$request } = values %$request; - local @{ $c->response }{ keys %$response } = values %$response; - - $code->(); -} - =head2 $c->finalize Finalizes the request.