Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed obsolete deprecation warning
  • Loading branch information
kraih committed Dec 28, 2011
1 parent 7f71c8c commit 1085dd5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -130,10 +130,6 @@ sub flash {
$flash = {} unless $flash && ref $flash eq 'HASH';
$session->{new_flash} = $flash;

# DEPRECATED in Smiling Face With Sunglasses!
warn "Direct hash access to the flash is DEPRECATED!\n" and return $flash
unless @_;

# Set
my $values = @_ > 1 ? {@_} : $_[0];
$session->{new_flash} = {%$flash, %$values};
Expand Down

0 comments on commit 1085dd5

Please sign in to comment.