diff options
Diffstat (limited to 'app/services/snippets/destroy_service.rb')
-rw-r--r-- | app/services/snippets/destroy_service.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/services/snippets/destroy_service.rb b/app/services/snippets/destroy_service.rb index 96157434462..6c62d7d5e45 100644 --- a/app/services/snippets/destroy_service.rb +++ b/app/services/snippets/destroy_service.rb @@ -31,7 +31,6 @@ module Snippets rescue DestroyError service_response_error('Failed to remove snippet repository.', 400) rescue StandardError - attempt_rollback_repository service_response_error('Failed to remove snippet.', 400) end @@ -45,10 +44,6 @@ module Snippets snippet.destroy! end - def attempt_rollback_repository - Repositories::DestroyRollbackService.new(snippet.repository).execute - end - def user_can_delete_snippet? can?(current_user, :admin_snippet, snippet) end |