summaryrefslogtreecommitdiff
path: root/app/services/system_note_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r--app/services/system_note_service.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb
index 35c9ce909e6..e13dc9265b8 100644
--- a/app/services/system_note_service.rb
+++ b/app/services/system_note_service.rb
@@ -395,23 +395,6 @@ module SystemNoteService
create_note(noteable: noteable, project: project, author: author, note: body)
end
- # Called when Issuable is submitted as spam
- #
- # noteable - Noteable object
- # project - Project owning noteable
- # author - User performing the change
- #
- # Example Note text:
- #
- # "Issue submitted as spam."
- #
- # Returns the created Note object
- def submit_spam(noteable, project, author)
- body = "Submitted this #{noteable.class.to_s.downcase} as spam"
-
- create_note(noteable: noteable, project: project, author: author, note: body)
- end
-
private
def notes_for_mentioner(mentioner, noteable, notes)