]> git.openstreetmap.org Git - rails.git/commitdiff
Remove unused function
authorTom Hughes <tom@compton.nu>
Tue, 5 May 2020 18:20:21 +0000 (19:20 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 5 May 2020 18:20:21 +0000 (19:20 +0100)
test/test_helper.rb

index 84d03bec214b0bbbe08807346bb13da5043d39a3..c02b23728cc41ec0425d2f215948f6dd321fee52 100644 (file)
@@ -171,11 +171,7 @@ module ActiveSupport
     end
 
     ##
-    # set request readers to ask for a particular error format
-    def error_format(format)
-      @request.env["HTTP_X_ERROR_FORMAT"] = format
-    end
-
+    # return request header to ask for a particular error format
     def error_format_header(f)
       { "X-Error-Format" => f }
     end