Skip to content

Commit

Permalink
Remove unused node matchers in Node
Browse files Browse the repository at this point in the history
  • Loading branch information
buehmann authored and bbatsov committed Jul 29, 2019
1 parent f1eaf7f commit f51c53c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/rubocop/ast/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ def source_length
{(send $_ ...) (block (send $_ ...) ...)}
PATTERN

# Note: for masgn, #asgn_rhs will be an array node
def_node_matcher :asgn_rhs, '[assignment? (... $_)]'
def_node_matcher :str_content, '(str $_)'

def const_name
Expand Down Expand Up @@ -497,10 +495,6 @@ def range_type?
(block (send (const nil? {:Class :Module}) :new ...) ...)}
PATTERN

def_node_matcher :module_definition?, <<~PATTERN
{class module (casgn _ _ class_constructor?)}
PATTERN

# Some expressions are evaluated for their value, some for their side
# effects, and some for both
# If we know that an expression is useful only for its side effects, that
Expand Down

0 comments on commit f51c53c

Please sign in to comment.