diff options
Diffstat (limited to 'app/services/issues/close_service.rb')
-rw-r--r-- | app/services/issues/close_service.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/services/issues/close_service.rb b/app/services/issues/close_service.rb deleted file mode 100644 index f670019cc63..00000000000 --- a/app/services/issues/close_service.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Issues - class CloseService < Issues::BaseService - def execute(issue, commit = nil) - if issue.close - event_service.close_issue(issue, current_user) - create_note(issue, commit) - notification_service.close_issue(issue, current_user) - execute_hooks(issue, 'close') - end - - issue - end - - private - - def create_note(issue, current_commit) - Note.create_status_change_note(issue, issue.project, current_user, issue.state, current_commit) - end - end -end |