Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-01 23:26:55 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 19:07:18 +0300
commit56a40a2b6548d57c2c2a32b34a76c157ae5fdeab (patch)
tree600f17b6022fbddb518112e544fb6eb9ffee56e7 /app/services/notification_recipient_service.rb
parent1ccdd99fbd82c082a992ea344938dca17c337140 (diff)
rm unused methods
Diffstat (limited to 'app/services/notification_recipient_service.rb')
-rw-r--r--app/services/notification_recipient_service.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index 0e1527c1a7a..5d394f67631 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -199,32 +199,6 @@ module NotificationRecipientService
)
end
- def reject_unsubscribed_users
- return unless target.respond_to? :subscriptions
-
- recipients.reject! do |recipient|
- user = recipient.user
- subscription = target.subscriptions.find_by_user_id(user.id)
- subscription && !subscription.subscribed
- end
- end
-
- def reject_users_without_access
- recipients.select! { |r| r.user.can?(:receive_notifications) }
-
- return unless read_ability
-
- DeclarativePolicy.subject_scope do
- recipients.select! do |recipient|
- recipient.user.can?(read_ability, target)
- end
- end
- end
-
- def reject_user(user)
- recipients.reject! { |r| r.user == user }
- end
-
def add_labels_subscribers(labels: nil)
return unless target.respond_to? :labels