Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove unused scopes

ulferts0c8506d3b766
diff --git a/app/models/principals/scopes/not_builtin.rb b/app/models/principals/scopes/not_builtin.rb
index bed6a86e387..aeafd8f22c5 100644
--- a/app/models/principals/scopes/not_builtin.rb
+++ b/app/models/principals/scopes/not_builtin.rb
@@ -42,11 +42,6 @@ module Principals::Scopes
AnonymousUser.name,
DeletedUser.name])
end
-
- def not_builtin_without_anonymous
- where.not(type: [SystemUser.name,
- DeletedUser.name])
- end
end
end
end
diff --git a/app/models/principals/scopes/status.rb b/app/models/principals/scopes/status.rb
index bcf2545174c..f04f9e083d5 100644
--- a/app/models/principals/scopes/status.rb
+++ b/app/models/principals/scopes/status.rb
@@ -45,10 +45,6 @@ module Principals::Scopes
not_builtin.where.not(status: val)
end
end
-
- def self.not_locked_without_anonymous
- not_builtin_without_anonymous.where.not(status: :locked)
- end
end
end
end