Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed deprecated namespace method from Mojolicious::Routes
  • Loading branch information
kraih committed Mar 21, 2013
1 parent 15bc6de commit b06ac6b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

3.92 2013-03-21
- Removed deprecated namespace method from Mojolicious::Routes.
- Improved WebSocket send method to stringify objects. (jberger)
- Improved documentation.
- Improved tests.
Expand Down
10 changes: 0 additions & 10 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -79,16 +79,6 @@ sub lookup {
return $reverse->{$name} = $route;
}

# DEPRECATED in Rainbow!
sub namespace {
deprecated 'Mojolicious::Routes::namespace is DEPRECATED in favor of '
. 'Mojolicious::Routes::namespaces';
my $self = shift;
return $self->namespaces->[0] unless @_;
$self->namespaces->[0] = shift;
return $self;
}

sub route {
shift->add_child(Mojolicious::Routes::Route->new(@_))->children->[-1];
}
Expand Down
2 changes: 1 addition & 1 deletion t/pod_coverage.t
Expand Up @@ -9,7 +9,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 form html_escape json namespace post_form),
qw(build_form_tx build_json_tx form html_escape json post_form),
qw(post_form_ok post_json post_json_ok slurp_rel_file start)
);

Expand Down

0 comments on commit b06ac6b

Please sign in to comment.