Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-06-04 22:34:11 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-06-04 22:34:11 +0300
commitf12ee2a2f490e6d126ac6345a5ad7cbf12833791 (patch)
treec1669f129d10a1b903214a836cf02265f3d0b28d /app/models/project.rb
parent3571b97effd81f9a84f238f918544c6e5c625b76 (diff)
Remove unused running_or_pending_build_count
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 32298fc7f5c..a094dbcb747 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1649,12 +1649,6 @@ class Project < ActiveRecord::Base
import_state.update_column(:jid, nil)
end
- def running_or_pending_build_count(force: false)
- Rails.cache.fetch(['projects', id, 'running_or_pending_build_count'], force: force) do
- builds.running_or_pending.count(:all)
- end
- end
-
# Lazy loading of the `pipeline_status` attribute
def pipeline_status
@pipeline_status ||= Gitlab::Cache::Ci::ProjectPipelineStatus.load_for_project(self)