Skip to content

Commit

Permalink
Drop obsolete operation_produces_threadsafe_object? definition
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpraxis committed Sep 24, 2024
1 parent 1b7ca2c commit 00e283f
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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} _ _))
Expand Down

0 comments on commit 00e283f

Please sign in to comment.