Skip to content

Commit

Permalink
Remove custom Sexp#each_sexp
Browse files Browse the repository at this point in the history
now that it is in SexpProcessor
  • Loading branch information
presidentbeef committed Jun 22, 2017
1 parent 6861d3c commit 801882c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions gem_common.rb
Expand Up @@ -6,6 +6,7 @@ def self.dev_dependencies spec

def self.base_dependencies spec
spec.add_dependency "ruby_parser", "~>3.9.0"
spec.add_dependency "sexp_processor", "~> 4.7"
spec.add_dependency "ruby2ruby", "~>2.3.0"
spec.add_dependency "safe_yaml", ">= 1.0"
end
Expand Down
8 changes: 0 additions & 8 deletions lib/ruby_parser/bm_sexp.rb
Expand Up @@ -120,14 +120,6 @@ def find_node *args
old_find_node(*args)
end

#Iterates over the Sexps in an Sexp, skipping values that are not
#an Sexp.
def each_sexp
self.each do |e|
yield e if Sexp === e
end
end

#Raise a WrongSexpError if the nodes type does not match one of the expected
#types.
def expect *types
Expand Down

0 comments on commit 801882c

Please sign in to comment.