Skip to content

Remove unused conn_port methods#317

Open
nvasilevski wants to merge 1 commit into
ruby:masterfrom
nvasilevski:rubydex/remove-conn-port
Open

Remove unused conn_port methods#317
nvasilevski wants to merge 1 commit into
ruby:masterfrom
nvasilevski:rubydex/remove-conn-port

Conversation

@nvasilevski

Copy link
Copy Markdown

Net::HTTP#conn_port and Net::HTTP::ProxyDelta#conn_port have no callers.

Commit d07a2fb changed the connection path to select port or proxy_port directly and stopped including ProxyDelta in 2012. Both private helpers have been unused since.

This removes the two unreachable methods while retaining the remaining ProxyDelta compatibility surface.

Verification: bundle exec rake test — 188 tests, 884 assertions, 0 failures.

Net::HTTP stopped calling conn_port when proxy connection selection was inlined in d07a2fb in 2012. That refactor also stopped including ProxyDelta, leaving both private conn_port implementations unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant