diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-08-01 11:51:01 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 09:07:18 -0700 |
commit | 934305ffa3eb1662a367761058ae8ded210d3336 (patch) | |
tree | c7bdfa24f5f1858d0a766f55afbd6eec00c89b12 | |
parent | 9d53418acb736476e4ede216c1ba9d08a5e3554a (diff) | |
download | gitlab-ce-934305ffa3eb1662a367761058ae8ded210d3336.tar.gz |
rm unused NewNote#subject
its functionality is swept into the project permission check
in NotificationRecipient#has_access? now
-rw-r--r-- | app/services/notification_recipient_service.rb | 4 |
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) |