DEV: removes unused set_env (#12961)

DEV: removes unused set_env (#12961)

diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index d3da629..1c6c80d 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -348,20 +348,6 @@ def global_setting(name, value)
   end
 end
 
-def set_env(var, value)
-  old = ENV.fetch var, :missing
-
-  ENV[var] = value
-
-  before_next_spec do
-    if old == :missing
-      ENV.delete var
-    else
-      ENV[var] = old
-    end
-  end
-end
-
 def set_cdn_url(cdn_url)
   global_setting :cdn_url, cdn_url
   Rails.configuration.action_controller.asset_host = cdn_url

GitHub sha: f3a4c125

This commit appears in #12961 which was approved by martin. It was merged by jjaffeux.