Skip to content

Remove unused fu_copy_stream0 helper#170

Open
nvasilevski wants to merge 1 commit into
ruby:masterfrom
nvasilevski:rubydex/dead-code
Open

Remove unused fu_copy_stream0 helper#170
nvasilevski wants to merge 1 commit into
ruby:masterfrom
nvasilevski:rubydex/dead-code

Conversation

@nvasilevski

Copy link
Copy Markdown

FileUtils::StreamUtils_#fu_copy_stream0 is a private, undocumented helper with no callers.

Commit b26846b replaced both of its callers with direct IO.copy_stream calls in 2008, but retained the wrapper itself. It has been unused ever since.

This removes the unreachable helper.

Verification: bundle exec rake test — 423 tests, 1,135 assertions, 0 failures.

fu_copy_stream0 has had no caller since b26846b replaced both uses with direct IO.copy_stream calls in 2008. The retained private wrapper is unreachable.
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