Remove redundant #add_child method

This commit is contained in:
Michael Miller 2018-10-30 16:21:19 -06:00
parent eb8ce6ff92
commit ee4623b471
1 changed files with 0 additions and 4 deletions

View File

@ -3,10 +3,6 @@ module Spectator::DSL
def initialize(@what : String)
end
def add_child(child : Child) : Nil
@children << child
end
def build(parent : ExampleGroup, sample_values : Internals::SampleValues) : NestedExampleGroup
NestedExampleGroup.new(@what, parent, hooks).tap do |group|
group.children = @children.map do |child|