From c00f8934de7576d3ae4cd5f4dbdaaf8877494050 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Wed, 9 Jan 2013 14:14:44 -0500 Subject: [PATCH] rm not_found, as it is no longer used. --- Changes | 2 ++ lib/Mojolicious/Plugin/TtRenderer/Engine.pm | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index f5eff8e..110e8f1 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Mojolicious::Plugin::TtRenderer {{$NEXT}} + +1.35 December 30, 2012 - Documentation fix 1.34 December 29, 2012 diff --git a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm index 035b8b6..de7f059 100644 --- a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm +++ b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm @@ -171,7 +171,6 @@ sub new { sub renderer { @_ > 1 ? $_[0]->{renderer} = $_[1] : $_[0]->{renderer} } sub ctx { @_ > 1 ? $_[0]->{ctx} = $_[1] : $_[0]->{ctx} } sub options { @_ > 1 ? $_[0]->{options} = $_[1] : $_[0]->{options} } -sub not_found { @_ > 1 ? $_[0]->{not_found} = $_[1] : $_[0]->{not_found} } sub _template_modified { my($self, $template) = @_; @@ -199,7 +198,6 @@ sub _template_content { # Try DATA section if(defined $options) { $data = $self->renderer->get_data_template($options); - $self->not_found(1) unless defined $data; } else { my $loader = Mojo::Loader->new; foreach my $class (@{ $self->renderer->classes }) {