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)