[Catalyst-commits] r10980 - Catalyst-Runtime/5.80/trunk/lib

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Sat Jul 25 21:05:20 GMT 2009


Author: t0m
Date: 2009-07-25 21:05:19 +0000 (Sat, 25 Jul 2009)
New Revision: 10980

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
Remove dead and unused method

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-07-25 11:58:03 UTC (rev 10979)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-07-25 21:05:19 UTC (rev 10980)
@@ -1606,25 +1606,6 @@
     $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.




More information about the Catalyst-commits mailing list