TT#40544 Remove unnecessary comment

Change-Id: I12baece10c338d7c2c483ebedb0f0485234d0f5f
changes/67/22567/6
Irina Peshinskaya 7 years ago
parent 212f4f876e
commit effa8fe137

@ -131,33 +131,6 @@ sub PUT :Allow {
return;
}
=pod
sub DELETE :Allow {
my ($self, $c, $id) = @_;
my $guard = $c->model('DB')->txn_scope_guard;
{
my $item = $self->item_by_id($c, $id);
last unless $self->resource_exists($c, emailtemplate => $item);
foreach(qw/subscriber_email_template_id passreset_email_template_id invoice_email_template_id/){
$c->model('DB')->resultset('contracts')->search({
$_ => $item->id,
})->update({
$_ => undef,
});
}
$item->delete;
$guard->commit;
$c->response->status(HTTP_NO_CONTENT);
$c->response->body(q());
}
return;
}
=cut
1;
__END__

Loading…
Cancel
Save