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 exists? methods of registries

Ivan Kuchin48c8987e985c
diff --git a/lib_static/open_project/acts/favorable/registry.rb b/lib_static/open_project/acts/favorable/registry.rb
index f0c760f5cdc..4434857fc42 100644
--- a/lib_static/open_project/acts/favorable/registry.rb
+++ b/lib_static/open_project/acts/favorable/registry.rb
@@ -34,10 +34,6 @@ module OpenProject
@models ||= Set.new
end
- def self.exists?(model)
- models.include?(model)
- end
-
def self.instance(model_name)
models.detect { |cls| cls.name == model_name.singularize.camelize }
end
diff --git a/lib_static/open_project/acts/watchable/registry.rb b/lib_static/open_project/acts/watchable/registry.rb
index 515340a2c10..daae4de864d 100644
--- a/lib_static/open_project/acts/watchable/registry.rb
+++ b/lib_static/open_project/acts/watchable/registry.rb
@@ -34,10 +34,6 @@ module OpenProject
@models ||= Set.new
end
- def self.exists?(model)
- models.include?(model)
- end
-
def self.instance(model_name)
models.detect { |cls| cls.name == model_name.singularize.camelize }
end