From f3d0762853b3f391e65074ed18353aa09277f337 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sun, 14 Apr 2024 15:17:00 +0200 Subject: [PATCH] remove unused function in the cache middleware --- .../middleware/faraday-object-cache.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ontologies_api_client/middleware/faraday-object-cache.rb b/lib/ontologies_api_client/middleware/faraday-object-cache.rb index 32d6105..4e9eb65 100644 --- a/lib/ontologies_api_client/middleware/faraday-object-cache.rb +++ b/lib/ontologies_api_client/middleware/faraday-object-cache.rb @@ -219,13 +219,6 @@ def create_request(env) request[:request_headers] = request[:request_headers].dup request end - - def clean_request_headers(request) - request[:request_headers].delete("If-Modified-Since") - request[:request_headers].delete("Expect") - request - end - end end