diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-14 13:31:59 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-14 13:31:59 +0100 |
commit | d4522de2fd71f2d21118ceec50e8509114c7f64b (patch) | |
tree | 463ee0fb0d89b8dad6c0c26dd9cd16ed7c3361f0 | |
parent | 056f1b702042382c99dcfdaf1e292bf68b8f55ba (diff) | |
download | gitlab-ce-d4522de2fd71f2d21118ceec50e8509114c7f64b.tar.gz |
Revert adding new methods in CI/CD stage class
-rw-r--r-- | app/models/ci/stage.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index c6a7984870f..ca74c91b062 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -19,10 +19,6 @@ module Ci name end - def index - statuses.first.stage_idx - end - def statuses_count @statuses_count ||= statuses.count end @@ -49,14 +45,6 @@ module Ci status.to_s == 'success' end - def failed? - status.to_s == 'failed' - end - - def canceled? - status.to_s == 'canceled' - end - def has_warnings? if @warnings.nil? statuses.latest.failed_but_allowed.any? |