summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/ci/build_presenter.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb
index 531ccd39cf2..c495c3f39bb 100644
--- a/app/presenters/ci/build_presenter.rb
+++ b/app/presenters/ci/build_presenter.rb
@@ -17,16 +17,5 @@ module Ci
"Job is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}"
end
end
-
- def old_or_new_trigger_variables
- return @old_or_new_trigger_variables if defined?(@old_or_new_trigger_variables)
-
- if build.pipeline.variables.any?
- @old_or_new_trigger_variables =
- build.pipeline.variables&.map { |v| { v.key => v.value } } &.reduce({}, :merge)
- else
- @old_or_new_trigger_variables = build.trigger_request.variables
- end
- end
end
end