From effa8fe13784b1b5fcb8f44b5630ddba5034e87c Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Wed, 18 Jul 2018 21:43:08 +0200 Subject: [PATCH] TT#40544 Remove unnecessary comment Change-Id: I12baece10c338d7c2c483ebedb0f0485234d0f5f --- .../Controller/API/PbxDeviceProfilesItem.pm | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm index c062faf9cc..62c2ed8838 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm @@ -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__