Skip to content

Remove unused fu_copy_stream0 helper - #170

Merged
nobu merged 1 commit into
ruby:masterfrom
nvasilevski:rubydex/dead-code
Sep 21, 2026
Merged

nobu merged 1 commit into
ruby:masterfrom
nvasilevski:rubydex/dead-code

Conversation

@nvasilevski

Copy link
Copy Markdown
Contributor

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.
@nobu
nobu merged commit 5ecdc4a into ruby:master Sep 21, 2026
36 checks passed
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.

2 participants