summaryrefslogtreecommitdiffstats
path: root/Bugzilla/PatchReader/FilterPatch.pm
blob: 330f6329bc8b7e0d2b970a604adf95df94f0da27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package Bugzilla::PatchReader::FilterPatch;

use 5.10.1;
use strict;
use warnings;

use Bugzilla::PatchReader::Base;

@Bugzilla::PatchReader::FilterPatch::ISA = qw(Bugzilla::PatchReader::Base);

sub new {
  my $class = shift;
  $class = ref($class) || $class;
  my $this  = $class->SUPER::new();
  bless $this, $class;

  return $this;
}

sub start_patch {
  my $this = shift;
  $this->{TARGET}->start_patch(@_) if $this->{TARGET};
}

sub end_patch {
  my $this = shift;
  $this->{TARGET}->end_patch(@_) if $this->{TARGET};
}

sub start_file {
  my $this = shift;
  $this->{TARGET}->start_file(@_) if $this->{TARGET};
}

sub end_file {
  my $this = shift;
  $this->{TARGET}->end_file(@_) if $this->{TARGET};
}

sub next_section {
  my $this = shift;
  $this->{TARGET}->next_section(@_) if $this->{TARGET};
}

1