diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-11 18:04:52 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-11 18:04:52 +0800 |
commit | 2a435e1d116065496fcb82f9b2182f7037d4c8b3 (patch) | |
tree | 60aeea6b633673b8173974e4e8b74b3f57ea5bff /app | |
parent | 71046cc62919846b52d3724f7277ca14bb3a3a81 (diff) | |
download | gitlab-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.rb | 4 |
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) |