Skip to content

Commit

Permalink
removed deprecated start method from Mojolicious::Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 5, 2013
1 parent 4286984 commit c3afdee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@

3.94 2013-04-06
- Removed deprecated start method from Mojolicious::Commands.

3.93 2013-04-05
- Deprecated Mojo::IOLoop::Delay::end in favor of generated callbacks.
- Improved Mojo::IOLoop::Delay to be able to generate callbacks that can
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -40,7 +40,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.93';
our $VERSION = '3.94';

sub AUTOLOAD {
my $self = shift;
Expand Down
10 changes: 0 additions & 10 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -4,7 +4,6 @@ use Mojo::Base 'Mojolicious::Command';
use Getopt::Long 'GetOptions';
use List::Util 'max';
use Mojo::Server;
use Mojo::Util 'deprecated';

has hint => <<"EOF";
Expand Down Expand Up @@ -104,15 +103,6 @@ sub run {
return print $self->hint;
}

# DEPRECATED in Rainbow!
sub start {
deprecated 'Mojolicious::Commands::start is DEPRECATED in favor of '
. 'Mojolicious::Commands::start_app';
my $self = shift;
return $self->start_app($ENV{MOJO_APP} => @_) if $ENV{MOJO_APP};
return $self->new->app->start(@_);
}

sub start_app {
my $self = shift;
return Mojo::Server->new->build_app(shift)->start(@_);
Expand Down
2 changes: 1 addition & 1 deletion t/pod_coverage.t
Expand Up @@ -10,7 +10,7 @@ plan skip_all => 'Test::Pod::Coverage 1.04 required for this test!'
# DEPRECATED in Rainbow!
my @rainbow = (
qw(build_form_tx build_json_tx end form html_escape json post_form),
qw(post_form_ok post_json post_json_ok slurp_rel_file start)
qw(post_form_ok post_json post_json_ok slurp_rel_file)
);

# False positive constants
Expand Down

0 comments on commit c3afdee

Please sign in to comment.