diff --git a/lib/rubocop/cop/performance/select_map.rb b/lib/rubocop/cop/performance/select_map.rb index 3d84949918..3dbf0d7b2d 100644 --- a/lib/rubocop/cop/performance/select_map.rb +++ b/lib/rubocop/cop/performance/select_map.rb @@ -24,10 +24,6 @@ class SelectMap < Base MSG = 'Use `filter_map` instead of `%s.map`.' RESTRICT_ON_SEND = %i[select filter].freeze - def_node_matcher :bad_method?, <<~PATTERN - (send nil? :bad_method ...) - PATTERN - def on_send(node) return if (first_argument = node.first_argument) && !first_argument.block_pass_type? return unless (send_node = map_method_candidate(node))