From 4a8948c4e38ac5c67e3c5b647597a9f2dfff8992 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Fri, 3 May 2019 19:08:47 +0600 Subject: [PATCH] Drop support for net-http-persistent < 3.0 --- rb/lib/selenium/webdriver/remote/http/persistent.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rb/lib/selenium/webdriver/remote/http/persistent.rb b/rb/lib/selenium/webdriver/remote/http/persistent.rb index ee71e5aeedf44..10ea3fa2042bf 100644 --- a/rb/lib/selenium/webdriver/remote/http/persistent.rb +++ b/rb/lib/selenium/webdriver/remote/http/persistent.rb @@ -46,12 +46,7 @@ def new_http_client proxy = URI.parse(url) end - if Net::HTTP::Persistent::VERSION >= '3' - Net::HTTP::Persistent.new name: 'webdriver', proxy: proxy - else - WebDriver.logger.warn 'Support for this version of net-http-persistent is deprecated. Please upgrade.' - Net::HTTP::Persistent.new 'webdriver', proxy - end + Net::HTTP::Persistent.new name: 'webdriver', proxy: proxy end def response_for(request)