Skip to content

Commit 3b3f8ae

Browse files
committed
💥🔥 Remove deprecated #client_thread attr_reader
I don't know what the original purpose for `#client_thread` was, and it was deprecated by v0.4.0. There's nothing particularly special about the Thread that created the client instance. Net::IMAP doesn't use it, clients can use multiple threads, and users of Net::IMAP can track this for themselves if they need to.
1 parent 14f848f commit 3b3f8ae

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/net/imap.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -944,21 +944,13 @@ def initialize(host, port: nil, ssl: nil,
944944
@sock = tcp_socket(@host, @port)
945945
start_tls_session if ssl_ctx
946946
start_imap_connection
947-
948-
# DEPRECATED: to remove in next version
949-
@client_thread = Thread.current
950947
end
951948

952949
# Returns true after the TLS negotiation has completed and the remote
953950
# hostname has been verified. Returns false when TLS has been established
954951
# but peer verification was disabled.
955952
def tls_verified?; @tls_verified end
956953

957-
def client_thread # :nodoc:
958-
warn "Net::IMAP#client_thread is deprecated and will be removed soon."
959-
@client_thread
960-
end
961-
962954
# Disconnects from the server.
963955
#
964956
# Related: #logout, #logout!

0 commit comments

Comments
 (0)