summaryrefslogtreecommitdiff
path: root/app/models/commit_status.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-15 18:54:38 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-15 18:54:38 +0800
commit5e7d99d3dc3cc7c5cf644f15610ed9813b45cb41 (patch)
tree4a8fbf1f654be5cd0dafdeeac033d1e54643283a /app/models/commit_status.rb
parent7d9bdac6cef6c2e59c8d8753cd54bf5516bfdefc (diff)
downloadgitlab-ce-5e7d99d3dc3cc7c5cf644f15610ed9813b45cb41.tar.gz
Rename to total_duration and we're not using CommitStatus.duration
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index ac589fa2e31..9e1e9b76ce4 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -103,11 +103,6 @@ class CommitStatus < ActiveRecord::Base
end
end
- def self.duration
- select(:started_at, :finished_at).all.
- map(&:duration).compact.inject(0, &:+)
- end
-
def ignored?
allow_failure? && (failed? || canceled?)
end