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 code

ulferts89b1921117f9
diff --git a/app/models/queries/projects/selects/custom_field.rb b/app/models/queries/projects/selects/custom_field.rb
index 65655e4305d..1ccd53186a6 100644
--- a/app/models/queries/projects/selects/custom_field.rb
+++ b/app/models/queries/projects/selects/custom_field.rb
@@ -55,8 +55,4 @@ class Queries::Projects::Selects::CustomField < Queries::Selects::Base
.visible
.find_by(id: self.class.key.match(attribute)[1])
end
-
- def scope
- super.select(custom_field.order_statements)
- end
end
diff --git a/app/models/queries/selects/base.rb b/app/models/queries/selects/base.rb
index 0776ac5cf46..8dc937d3154 100644
--- a/app/models/queries/selects/base.rb
+++ b/app/models/queries/selects/base.rb
@@ -55,8 +55,4 @@ class Queries::Selects::Base
def initialize(attribute)
self.attribute = attribute
end
-
- def scope
- model.select(attribute)
- end
end