From feba38f651fe49698e8518e5d36ba1b85d3e55d0 Mon Sep 17 00:00:00 2001 From: Nikita Vasilevsky Date: Tue, 21 Jul 2026 17:09:37 -0400 Subject: [PATCH] Remove unused fu_copy_stream0 helper fu_copy_stream0 has had no caller since b26846bf replaced both uses with direct IO.copy_stream calls in 2008. The retained private wrapper is unreachable. --- lib/fileutils.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/fileutils.rb b/lib/fileutils.rb index acda98b..1e877fc 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -2066,10 +2066,6 @@ def fu_windows?; true end #:nodoc: def fu_windows?; false end #:nodoc: end - def fu_copy_stream0(src, dest, blksize = nil) #:nodoc: - IO.copy_stream(src, dest) - end - def fu_stream_blksize(*streams) #:nodoc: streams.each do |s| next unless s.respond_to?(:stat)