From d4522de2fd71f2d21118ceec50e8509114c7f64b Mon Sep 17 00:00:00 2001
From: Grzegorz Bizon <grzesiek.bizon@gmail.com>
Date: Tue, 14 Feb 2017 13:31:59 +0100
Subject: [PATCH] Revert adding new methods in CI/CD stage class

---
 app/models/ci/stage.rb | 12 ------------
 1 file changed, 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?
-- 
GitLab