Skip to content

Commit 7869ed5

Browse files
committed
Remove legacy method shims for OpenSSL.
1 parent 29d40d8 commit 7869ed5

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

lib/io/stream/openssl.rb

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,6 @@ module OpenSSL
1111
module SSL
1212
# SSL socket extensions for stream compatibility.
1313
class SSLSocket
14-
unless method_defined?(:close_read)
15-
# Close the read end of the SSL socket.
16-
def close_read
17-
# Ignored.
18-
end
19-
end
20-
21-
unless method_defined?(:close_write)
22-
# Close the write end of the SSL socket.
23-
def close_write
24-
self.stop
25-
end
26-
end
27-
28-
unless method_defined?(:wait_readable)
29-
# Wait for the SSL socket to become readable.
30-
def wait_readable(...)
31-
to_io.wait_readable(...)
32-
end
33-
end
34-
35-
unless method_defined?(:wait_writable)
36-
# Wait for the SSL socket to become writable.
37-
def wait_writable(...)
38-
to_io.wait_writable(...)
39-
end
40-
end
41-
42-
unless method_defined?(:timeout)
43-
# Get the timeout for SSL socket operations.
44-
# @returns [Numeric | Nil] The timeout value.
45-
def timeout
46-
to_io.timeout
47-
end
48-
end
49-
50-
unless method_defined?(:timeout=)
51-
# Set the timeout for SSL socket operations.
52-
# @parameter value [Numeric | Nil] The timeout value.
53-
def timeout=(value)
54-
to_io.timeout = value
55-
end
56-
end
57-
5814
unless method_defined?(:buffered?)
5915
# Check if the SSL socket is buffered.
6016
# @returns [Boolean] True if the SSL socket is buffered.

0 commit comments

Comments
 (0)