From 00e283f5e6e88065f4a55941bad1b0e075cf2a8c Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Tue, 24 Sep 2024 16:45:38 +0300 Subject: [PATCH] Drop obsolete `operation_produces_threadsafe_object?` definition --- .../mutable_class_instance_variable.rb | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb b/lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb index a2f9d98..808b1a3 100644 --- a/lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb +++ b/lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb @@ -243,39 +243,6 @@ def correct_splat_expansion(corrector, expr, splat_value) } PATTERN - # @!method operation_produces_threadsafe_object?(node) - def_node_matcher :operation_produces_threadsafe_object?, <<~PATTERN - { - (send (const {nil? cbase} :Queue) :new ...) - (send - (const (const {nil? cbase} :ThreadSafe) {:Hash :Array}) - :new ...) - (block - (send - (const (const {nil? cbase} :ThreadSafe) {:Hash :Array}) - :new ...) - ...) - (send (const (const {nil? cbase} :Concurrent) _) :new ...) - (block - (send (const (const {nil? cbase} :Concurrent) _) :new ...) - ...) - (send (const (const (const {nil? cbase} :Concurrent) _) _) :new ...) - (block - (send - (const (const (const {nil? cbase} :Concurrent) _) _) - :new ...) - ...) - (send - (const (const (const (const {nil? cbase} :Concurrent) _) _) _) - :new ...) - (block - (send - (const (const (const (const {nil? cbase} :Concurrent) _) _) _) - :new ...) - ...) - } - PATTERN - # @!method range_enclosed_in_parentheses?(node) def_node_matcher :range_enclosed_in_parentheses?, <<~PATTERN (begin ({irange erange} _ _))