removed a bit more PSGI::Engine backcompat
John Napiorkowski [Sat, 28 Jun 2014 13:45:33 +0000 (09:45 -0400)]
lib/Catalyst.pm
lib/Catalyst/Engine.pm

index f6b1d09..c409eb0 100755 (executable)
@@ -2180,9 +2180,7 @@ Prepares connection.
 
 sub prepare_connection {
     my $c = shift;
-    # XXX - This is called on the engine (not the request) to maintain
-    #       Engine::PSGI back compat.
-    $c->engine->prepare_connection($c);
+    $c->request->prepare_connection($c);
 }
 
 =head2 $c->prepare_cookies
index a84bdda..c5aacad 100644 (file)
@@ -22,12 +22,6 @@ use namespace::clean -except => 'meta';
 # Amount of data to read from input on each pass
 our $CHUNKSIZE = 64 * 1024;
 
-# XXX - Only here for Engine::PSGI compat
-sub prepare_connection {
-    my ($self, $ctx) = @_;
-    $ctx->request->prepare_connection;
-}
-
 =head1 NAME
 
 Catalyst::Engine - The Catalyst Engine