Skip to content

Commit a62b50e

Browse files
committed
Remove extra #set_pipe_info method
* We can just set the instance variable directly. * Pipes are already #sync = true when created.
1 parent e134b02 commit a62b50e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/ruby/core/io.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ def self.popen(*args)
871871

872872
if readable and writable
873873
pipe = pa_read
874-
pipe.set_pipe_info(pa_write)
874+
pipe.instance_variable_set(:@write, pa_write)
875875
elsif readable
876876
pipe = pa_read
877877
elsif writable
@@ -2652,11 +2652,6 @@ def encode_with coder
26522652

26532653
class IO::BidirectionalPipe < IO
26542654

2655-
def set_pipe_info(write)
2656-
@write = write
2657-
@sync = true
2658-
end
2659-
26602655
##
26612656
# Closes ios and flushes any pending writes to the
26622657
# operating system. The stream is unavailable for

0 commit comments

Comments
 (0)