Remove unused method addable_watcher_users from acts_as_watchable.rb (#43429).

git-svn-id: https://svn.redmine.org/redmine/trunk@24215 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-12-18 10:19:49 +00:00
parent 9241496644
commit 43f72bb6f2
2 changed files with 0 additions and 22 deletions

View File

@@ -51,15 +51,6 @@ module Redmine
base.extend ClassMethods
end
# Returns an array of users that are proposed as watchers
def addable_watcher_users
users = self.project.principals.assignable_watchers.sort - self.watcher_users
if respond_to?(:visible?)
users.reject! {|user| user.is_a?(User) && !visible?(user)}
end
users
end
# array of watchers that the given user is allowed to see
def visible_watcher_users(user = User.current)
if user.allowed_to?(:"view_#{self.class.name.underscore}_watchers", project)