summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-04-12 18:31:08 +0200
committerPatrick Derichs <pderichs@gitlab.com>2019-04-16 13:45:49 +0200
commit141ae689a981cc30d1f13f003e5386c077eee1d1 (patch)
treefe7eb64546eb4c710054196c39ae84b177c379df
parent098aa63bd58d32f0b3baaac74bdd985692aab547 (diff)
downloadgitlab-ce-141ae689a981cc30d1f13f003e5386c077eee1d1.tar.gz
Remove unnecessary participant methods
-rw-r--r--app/models/notification_recipient.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb
index a5ab6855922..377ac3febb6 100644
--- a/app/models/notification_recipient.rb
+++ b/app/models/notification_recipient.rb
@@ -45,18 +45,6 @@ class NotificationRecipient
true
end
- def participating?
- participant? || merge_participant?
- end
-
- def participant?
- @target.respond_to?(:participants) && @target.participants.include?(user)
- end
-
- def merge_participant?
- @target.respond_to?(:merge_participants) && @target.merge_participants.include?(user)
- end
-
def suitable_notification_level?
case notification_level
when :mention