Navigation Menu

Skip to content

Commit

Permalink
removed deprecated attrs method from Mojo::DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 19, 2013
1 parent d8f46b7 commit 8fdf005
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

4.50 2013-10-18
4.50 2013-10-20
- Removed deprecated attrs method from Mojo::DOM.
- Improved Mojo::Message to allow max_message_size check to be disabled.

4.49 2013-10-17
Expand Down
8 changes: 1 addition & 7 deletions lib/Mojo/DOM.pm
Expand Up @@ -12,7 +12,7 @@ use Carp 'croak';
use Mojo::Collection;
use Mojo::DOM::CSS;
use Mojo::DOM::HTML;
use Mojo::Util qw(deprecated squish);
use Mojo::Util 'squish';
use Scalar::Util qw(blessed weaken);

sub AUTOLOAD {
Expand Down Expand Up @@ -68,12 +68,6 @@ sub attr {
return $self;
}

# DEPRECATED in Top Hat!
sub attrs {
deprecated 'Mojo::DOM::attrs is DEPRECATED in favor of Mojo::DOM::attr';
shift->attr(@_);
}

sub children {
my $self = shift;
return _select(
Expand Down
5 changes: 1 addition & 4 deletions t/pod_coverage.t
Expand Up @@ -7,8 +7,5 @@ plan skip_all => 'set TEST_POD to enable this test (developer only!)'
plan skip_all => 'Test::Pod::Coverage 1.04 required for this test!'
unless eval 'use Test::Pod::Coverage 1.04; 1';

# DEPRECATED in Top Hat!
my @tophat = qw(attrs);

# False positive constants
all_pod_coverage_ok({also_private => [qw(IPV6 TLS), @tophat]});
all_pod_coverage_ok({also_private => [qw(IPV6 TLS)]});

0 comments on commit 8fdf005

Please sign in to comment.