summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/environment_status.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/environment_status.rb b/app/models/environment_status.rb
index 7078496ff52..3c892165fce 100644
--- a/app/models/environment_status.rb
+++ b/app/models/environment_status.rb
@@ -43,22 +43,6 @@ class EnvironmentStatus
.merge_request_diff_files.where(deleted_file: false)
end
- ##
- # Since frontend has not supported all statuses yet, BE has to
- # proxy some status to a supported status.
- def status
- return unless deployment
-
- case deployment.status
- when 'created'
- 'running'
- when 'canceled'
- 'failed'
- else
- deployment.status
- end
- end
-
private
PAGE_EXTENSIONS = /\A\.(s?html?|php|asp|cgi|pl)\z/i.freeze