X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FTool%2Fmemcheck.pm;h=e75f0c0dd0dda9492d35666052f1d588dbd952f5;hp=87852cf5bed7757d23e8661cad90288f10462bc1;hb=08f451d35014a7f8587fba4bc20103a018487653;hpb=943acd9991dfbe73afc5eca6921767f098f5e6a9 diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index 87852cf..e75f0c0 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -58,8 +58,6 @@ sub new { $self->{callers} = $callers; - $self->{twig} = Test::Valgrind::Tool::memcheck::Twig->new(tool => $self); - $self; } @@ -73,14 +71,6 @@ Read-only accessor for the C option. sub callers { $_[0]->{callers} } -=head2 C - -Read-only accessor for the underlying L parser. - -=cut - -sub twig { $_[0]->{twig} } - sub suppressions_tag { 'memcheck-' . $_[1]->version } =head2 C @@ -114,39 +104,6 @@ sub args { return @args; } -# We must store the session in ourselves because it's only possible to pass -# arguments to XML::Twig objects by a global stash. - -sub _session { @_ <= 1 ? $_[0]->{_session} : ($_[0]->{_session} = $_[1]) } - -sub start { - my ($self, $sess) = @_; - - $self->SUPER::start($sess); - $self->_session($sess); - - return; -} - -sub parse_analysis { - my ($self, $sess, $fh) = @_; - - my $twig = $self->twig; - $twig->parse($fh); - $twig->purge; - - return; -} - -sub finish { - my ($self, $sess) = @_; - - $self->_session(undef); - $self->SUPER::finish($sess); - - return; -} - =head1 SEE ALSO L, L.