Skip to content

Commit

Permalink
removed deprecated mode specific methods in application class
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 28, 2013
1 parent 6b9702a commit 1dd8ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,9 +1,10 @@

4.59 2013-11-28
4.59 2013-11-29
- Added support for permessage-deflate WebSocket compression.
- Added build_message method to Mojo::Transaction::WebSocket.
- Added compressed and context_takeover attributes to
Mojo::Transaction::WebSocket.
- Removed deprecated mode specific methods in application class.
- Relicensed all artwork to CC-SA version 4.0.

4.58 2013-11-19
Expand Down
8 changes: 1 addition & 7 deletions lib/Mojolicious.pm
Expand Up @@ -4,7 +4,7 @@ use Mojo::Base 'Mojo';
# "Fry: Shut up and take my money!"
use Carp 'croak';
use Mojo::Exception;
use Mojo::Util qw(decamelize deprecated);
use Mojo::Util 'decamelize';
use Mojolicious::Commands;
use Mojolicious::Controller;
use Mojolicious::Plugins;
Expand Down Expand Up @@ -91,12 +91,6 @@ sub new {
# Reduced log output outside of development mode
$self->log->level('info') unless $mode eq 'development';

# DEPRECATED in Top Hat!
if (my $sub = $self->can("${mode}_mode")) {
deprecated qq{"sub ${mode}_mode {...}" in application class is DEPRECATED};
$self->$sub;
}

$self->startup;

return $self;
Expand Down

0 comments on commit 1dd8ffa

Please sign in to comment.