Remove final unused helper

This commit is contained in:
Tom Bloor 2017-04-21 22:13:41 +01:00
parent 3be6289fc3
commit 261751886b

View file

@ -149,12 +149,6 @@ sub startup {
$self->res->headers->header('Access-Control-Allow-Origin' => '*') if $self->app->mode eq 'development'; $self->res->headers->header('Access-Control-Allow-Origin' => '*') if $self->app->mode eq 'development';
}); });
$self->helper(get_age_foreign_key => sub {
my ( $c, $age_string ) = @_;
my $age_range = $c->schema->resultset('AgeRange')->find({ agerangestring => $age_string });
return defined $age_range ? $age_range->agerangeid : undef;
});
} }
1; 1;