Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed deprecated has_conditions method from Mojolicious::Routes::Route
  • Loading branch information
kraih committed Dec 8, 2014
1 parent a5801d5 commit 6b24270
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
5.69 2014-12-08
- Removed deprecated emit_safe method from Mojo::EventEmitter.
- Removed deprecated render_static method from Mojolicious::Controller.
- Removed deprecated has_conditions method from Mojolicious::Routes::Route.
- Improved Mojo::DOM::HTML performance slightly.
- Fixed parent combinator bug in Mojo::DOM::CSS.
- Fixed whitespace bug in Mojo::DOM::HTML.
Expand Down
10 changes: 0 additions & 10 deletions lib/Mojolicious/Routes/Route.pm
Expand Up @@ -58,16 +58,6 @@ sub find {

sub get { shift->_generate_route(GET => @_) }

# DEPRECATED in Tiger Face!
sub has_conditions {
Mojo::Util::deprecated
'Mojolicious::Routes::Route::has_conditions is DEPRECATED';
my $self = shift;
return 1 if @{$self->over || []};
return undef unless my $parent = $self->parent;
return $parent->has_conditions;
}

sub has_custom_name { !!shift->{custom} }

sub has_websocket {
Expand Down
2 changes: 1 addition & 1 deletion t/pod_coverage.t
Expand Up @@ -8,6 +8,6 @@ plan skip_all => 'Test::Pod::Coverage 1.04 required for this test!'
unless eval 'use Test::Pod::Coverage 1.04; 1';

# DEPRECATED in Tiger Face!
my @tiger = qw(decode encode error has_conditions new pluck val);
my @tiger = qw(decode encode error new pluck val);

all_pod_coverage_ok({also_private => [@tiger]});

0 comments on commit 6b24270

Please sign in to comment.