From 3b3f8ae9f1ab21f4ef5c05527ba31c01b6884508 Mon Sep 17 00:00:00 2001 From: nick evans Date: Sat, 14 Sep 2024 12:30:30 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=F0=9F=94=A5=20Remove=20deprecated?= =?UTF-8?q?=20#client=5Fthread=20attr=5Freader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- lib/net/imap.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/net/imap.rb b/lib/net/imap.rb index d7062081..f17122f4 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -944,9 +944,6 @@ def initialize(host, port: nil, ssl: nil, @sock = tcp_socket(@host, @port) start_tls_session if ssl_ctx start_imap_connection - - # DEPRECATED: to remove in next version - @client_thread = Thread.current end # Returns true after the TLS negotiation has completed and the remote @@ -954,11 +951,6 @@ def initialize(host, port: nil, ssl: nil, # but peer verification was disabled. def tls_verified?; @tls_verified end - def client_thread # :nodoc: - warn "Net::IMAP#client_thread is deprecated and will be removed soon." - @client_thread - end - # Disconnects from the server. # # Related: #logout, #logout!