Skip to content

Commit

Permalink
removed a few lines of code from renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2012
1 parent 5da2ce8 commit 4406a97
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -191,7 +191,7 @@ sub _detect_handler {
# DATA templates
my $class = $self->_detect_template_class($options);
my $inline = $self->{data_templates}->{$class}
||= $self->_list_data_templates($class);
||= [keys %{Mojo::Command->new->get_all_data($class) || {}}];

# Detect
return unless my $file = $self->template_name($options);
Expand Down Expand Up @@ -219,12 +219,6 @@ sub _extends {
return delete $stash->{extends};
}

sub _list_data_templates {
my ($self, $class) = @_;
my $all = Mojo::Command->new->get_all_data($class);
return [keys %$all];
}

# "Oh no! Can we switch back using four or more bodies?
# I'm not sure. I'm afraid we need to use... MATH."
sub _render_template {
Expand Down

0 comments on commit 4406a97

Please sign in to comment.