From: Tomas Doran Date: Thu, 27 Oct 2011 06:56:53 +0000 (-0700) Subject: We have always prepared the write, this can just go away X-Git-Tag: 5.90008~16^2~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=be5c8c2413b7b83b99cdae51d094907b0343583d We have always prepared the write, this can just go away --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index f305ec3..567c337 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -709,14 +709,6 @@ sub prepare_uploads { } } -=head2 $self->prepare_write($c) - -Abstract method. Implemented by the engines. - -=cut - -sub prepare_write { } - =head2 $self->read($c, [$maxlength]) Reads from the input stream by calling C<< $self->read_chunk >>. @@ -845,10 +837,6 @@ sub write { my ( $self, $c, $buffer ) = @_; my $response = $c->response; - unless ( $response->_prepared_write ) { - $self->prepare_write($c); - $response->_set_prepared_write(1); - } $buffer = q[] unless defined $buffer; diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 0798471..5f49df7 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -7,8 +7,6 @@ use namespace::autoclean; with 'MooseX::Emulate::Class::Accessor::Fast'; -has _prepared_write => (is => 'ro', writer => '_set_prepared_write'); - has _response_cb => ( is => 'ro', isa => 'CodeRef',