diff options
Diffstat (limited to 'app/services/tags/destroy_service.rb')
-rw-r--r-- | app/services/tags/destroy_service.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/services/tags/destroy_service.rb b/app/services/tags/destroy_service.rb index 4f6ae07be7d..3a01192487d 100644 --- a/app/services/tags/destroy_service.rb +++ b/app/services/tags/destroy_service.rb @@ -18,11 +18,6 @@ module Tags .new(project, current_user, tag: tag_name) .execute - push_data = build_push_data(tag) - EventCreateService.new.push(project, current_user, push_data) - project.execute_hooks(push_data.dup, :tag_push_hooks) - project.execute_services(push_data.dup, :tag_push_hooks) - success('Tag was removed') else error('Failed to remove tag') @@ -38,14 +33,5 @@ module Tags def success(message) super().merge(message: message) end - - def build_push_data(tag) - Gitlab::DataBuilder::Push.build( - project: project, - user: current_user, - oldrev: tag.dereferenced_target.sha, - newrev: Gitlab::Git::BLANK_SHA, - ref: "#{Gitlab::Git::TAG_REF_PREFIX}#{tag.name}") - end end end |