summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-11 18:04:52 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-11 18:04:52 +0800
commit2a435e1d116065496fcb82f9b2182f7037d4c8b3 (patch)
tree60aeea6b633673b8173974e4e8b74b3f57ea5bff /app
parent71046cc62919846b52d3724f7277ca14bb3a3a81 (diff)
downloadgitlab-ce-2a435e1d116065496fcb82f9b2182f7037d4c8b3.tar.gz
Remove Pipeline#latest in favour of Project#pipeline_for(ref)
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 50f9ee7fc66..9621bddf8dc 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -102,10 +102,6 @@ module Ci
end
end
- def latest
- project.pipelines.latest_for(ref).first
- end
-
def latest?
return false unless ref
commit = project.commit(ref)