summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-03 10:59:38 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-03 11:23:47 +0200
commit49cbe576229b7e4003575e04006cc4132c3c0060 (patch)
treeffd27dde6e307a709e793d2720e92fd85c0bae77 /app/models/ci/runner.rb
parentd39b3d4b8d2d4c5ded46182a5353c68a8f5bb5cd (diff)
downloadgitlab-ce-49cbe576229b7e4003575e04006cc4132c3c0060.tar.gz
Remove Runner#belonging_to_any_project since this is no longer needed
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 0b47b71a267..2dfd038d5a8 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -32,8 +32,6 @@ module Ci
joins(:runner_projects).where(ci_runner_projects: { project_id: project_id })
}
- scope :belonging_to_any_project, -> { joins(:runner_projects) }
-
scope :belonging_to_parent_group_of_project, -> (project_id) {
project_groups = ::Group.joins(:projects).where(projects: { id: project_id })
hierarchy_groups = Gitlab::GroupHierarchy.new(project_groups).base_and_ancestors