Skip to content

Commit

Permalink
Removed BEGIN {} as suggested by the author ESERTE.
Browse files Browse the repository at this point in the history
  • Loading branch information
manwar committed Jun 7, 2016
1 parent 68dd856 commit 2525df8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Kwalify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ use vars qw(@EXPORT_OK $VERSION);

$VERSION = '1.22_90';

BEGIN {
if ($] < 5.006) {
$INC{"warnings.pm"} = 1;
*warnings::import = sub { };
*warnings::unimport = sub { };
}
}

sub validate ($$) {
my($schema, $data) = @_;
my $self = Kwalify::Validator->new;
Expand Down

0 comments on commit 2525df8

Please sign in to comment.