From: Vincent Pit Date: Sat, 19 Sep 2009 22:33:13 +0000 (+0200) Subject: Remove ->parse() from Tool.pm X-Git-Tag: v1.10~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=732d824a6020c1bc4db54f069e64a112b616dff3;p=perl%2Fmodules%2FTest-Valgrind.git Remove ->parse() from Tool.pm As it's now handled directly in the parser. --- diff --git a/lib/Test/Valgrind/Tool.pm b/lib/Test/Valgrind/Tool.pm index 077fc09..8a0675f 100644 --- a/lib/Test/Valgrind/Tool.pm +++ b/lib/Test/Valgrind/Tool.pm @@ -118,45 +118,6 @@ Called when the C<$session> starts. Defaults to set L. -=head2 C - -Wraps around either L or L depending on the running mode of the C<$session>. -Croaks if the tool isn't started. - -=cut - -sub parse { - my ($self, $sess, $fh) = @_; - - $self->_croak('Tool isn\'t started') unless $self->started; - - if ($sess->do_suppressions) { - $self->parse_suppressions($sess, $fh); - } else { - $self->parse_analysis($sess, $fh); - } -} - -=head2 C - -Parse the suppression reports that the C process attached to the session C<$session> send through the filehandle C<$fh>. - -This method must be implemented when subclassing. - -=cut - -sub parse_suppressions; - -=head2 C - -Parse the error reports sent by the C process attached to the session C<$session> through the filehandle C<$fh>. - -This method must be implemented when subclassing. - -=cut - -sub parse_analysis; - =head2 C Called when the C<$session> finishes.