summaryrefslogtreecommitdiff
path: root/app/services/notification_recipient_service.rb
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-01 11:51:01 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 09:07:18 -0700
commit934305ffa3eb1662a367761058ae8ded210d3336 (patch)
treec7bdfa24f5f1858d0a766f55afbd6eec00c89b12 /app/services/notification_recipient_service.rb
parent9d53418acb736476e4ede216c1ba9d08a5e3554a (diff)
downloadgitlab-ce-934305ffa3eb1662a367761058ae8ded210d3336.tar.gz
rm unused NewNote#subject
its functionality is swept into the project permission check in NotificationRecipient#has_access? now
Diffstat (limited to 'app/services/notification_recipient_service.rb')
-rw-r--r--app/services/notification_recipient_service.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index cfc1fab210a..b2d805e9f27 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -311,10 +311,6 @@ module NotificationRecipientService
@read_ability ||= :"read_#{target.class.model_name.name.underscore}"
end
- def subject
- note.for_personal_snippet? ? note.noteable : note.project
- end
-
def build!
# Add all users participating in the thread (author, assignee, comment authors)
add_participants(note.author)