From d080331e34be25dcb438f77a36f46fc024dbb632 Mon Sep 17 00:00:00 2001 From: Nikita Vasilevsky Date: Tue, 21 Jul 2026 17:16:28 -0400 Subject: [PATCH] Remove unused conn_port methods Net::HTTP stopped calling conn_port when proxy connection selection was inlined in d07a2fbb in 2012. That refactor also stopped including ProxyDelta, leaving both private conn_port implementations unused. --- lib/net/http.rb | 4 ---- lib/net/http/proxy_delta.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 6c43e623..69382ac0 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1962,10 +1962,6 @@ def conn_address # :nodoc: @ipaddr || address() end - def conn_port # :nodoc: - port() - end - def edit_path(path) if proxy? if path.start_with?("ftp://") || use_ssl? diff --git a/lib/net/http/proxy_delta.rb b/lib/net/http/proxy_delta.rb index e7d30def..d98e3e5b 100644 --- a/lib/net/http/proxy_delta.rb +++ b/lib/net/http/proxy_delta.rb @@ -6,10 +6,6 @@ def conn_address proxy_address() end - def conn_port - proxy_port() - end - def edit_path(path) use_ssl? ? path : "http://#{addr_port()}#{path}" end