summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-01-11 13:56:24 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-01-11 13:56:24 +0000
commit6b2f81f6078e96f081154c50dc25e54fe7c09d6f (patch)
tree42f66c20d02b7ccbfa8031c95236e3cd5ba0770e /app/models/project.rb
parent249607c0ca6a77db5c45a79f5df8152d78c04bfc (diff)
parentab6b9a1c4350bbaf8b907efb28fbe456e4fe09d5 (diff)
downloadgitlab-ce-6b2f81f6078e96f081154c50dc25e54fe7c09d6f.tar.gz
Merge branch 'remove-get-builds-method' into 'master'
Remove get_build method for find_by_id See merge request gitlab-org/gitlab-ce!24271
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 05aca9c4e51..7ab2fc30c24 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -658,10 +658,6 @@ class Project < ActiveRecord::Base
latest_successful_build_for(job_name, ref) || raise(ActiveRecord::RecordNotFound.new("Couldn't find job #{job_name}"))
end
- def get_build(id)
- builds.find_by(id: id)
- end
-
def merge_base_commit(first_commit_id, second_commit_id)
sha = repository.merge_base(first_commit_id, second_commit_id)
commit_by(oid: sha) if sha