about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-10-08 04:48:54 +0200
committerGitHub <noreply@github.com>2018-10-08 04:48:54 +0200
commita00ce8c92c06f42109aad5cfe65d46862cf037bb (patch)
tree260c6df47d37f218abff07a48e0a13df8d8f25d7 /app
parent2dba313100e2a5077df3ff4b00d12f9ed9f0bd72 (diff)
Remove dead code (#8919)
SignatureVerification#matches_time_window? is not called anywhere.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/concerns/signature_verification.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/concerns/signature_verification.rb b/app/controllers/concerns/signature_verification.rb
index 4d77fa432..5f95fa346 100644
--- a/app/controllers/concerns/signature_verification.rb
+++ b/app/controllers/concerns/signature_verification.rb
@@ -87,16 +87,6 @@ module SignatureVerification
     end.join("\n")
   end
 
-  def matches_time_window?
-    begin
-      time_sent = DateTime.httpdate(request.headers['Date'])
-    rescue ArgumentError
-      return false
-    end
-
-    (Time.now.utc - time_sent).abs <= 30
-  end
-
   def body_digest
     "SHA-256=#{Digest::SHA256.base64digest(request_body)}"
   end