From: Tomas Doran Date: Thu, 27 Oct 2011 06:58:41 +0000 (-0700) Subject: Similarly, we don't need finalize_read X-Git-Tag: 5.90008~16^2~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=3c4c7ea9658b71113c851da0148002fffe1bac09 Similarly, we don't need finalize_read --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 567c337..e3fe476 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -345,12 +345,6 @@ sub finalize_headers { return; } -=head2 $self->finalize_read($c) - -=cut - -sub finalize_read { } - =head2 $self->finalize_uploads($c) Clean up after uploads, deleting temp files. @@ -399,7 +393,6 @@ sub prepare_body { # paranoia against wrong Content-Length header my $remaining = $length - $c->request->_read_position; if ( $remaining > 0 ) { - $self->finalize_read($c); Catalyst::Exception->throw( "Wrong Content-Length value: $length" ); } @@ -726,7 +719,6 @@ sub read { # Are we done reading? if ( $remaining <= 0 ) { - $self->finalize_read($c); return; } @@ -735,7 +727,6 @@ sub read { if ( defined $rc ) { if (0 == $rc) { # Nothing more to read even though Content-Length # said there should be. - $self->finalize_read; return; } my $request = $c->request;