diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 12:07:57 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 12:07:57 +0100 |
commit | ccff65be237a5bdc11170cf4051c79bb587fcf9e (patch) | |
tree | 807ba5aa19677e2beaacf0f6a72411a2a64a22f2 /app/models | |
parent | 48d7ed63912053a2a20f4352b7119ce267eb06fa (diff) | |
download | gitlab-ce-ccff65be237a5bdc11170cf4051c79bb587fcf9e.tar.gz |
Remove unused method from CI/CD build classfix/gb/remove-unused-method-from-build
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 77aba91f65c..f2989eff22d 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -55,15 +55,6 @@ module Ci pending.unstarted.order('created_at ASC').first end - def create_from(build) - new_build = build.dup - new_build.status = 'pending' - new_build.runner_id = nil - new_build.trigger_request_id = nil - new_build.token = nil - new_build.save - end - def retry(build, current_user) Ci::RetryBuildService .new(build.project, current_user) |