Skip to content

Commit

Permalink
remove redundant nodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballlover723 committed Nov 29, 2023
1 parent 417c901 commit 3c8858a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/spec/dsl.cr
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,12 @@ module Spec
print_list_tags(tag_counts)
end

# :nodoc:
private def self.collect_tags(context) : Hash(String, Int32)
tag_counts = Hash(String, Int32).new(0)
collect_tags(tag_counts, context, Set(String).new)
tag_counts
end

# :nodoc:
private def self.collect_tags(tag_counts, context : Context, tags)
if context.responds_to?(:tags) && (context_tags = context.tags)
tags += context_tags
Expand All @@ -258,7 +256,6 @@ module Spec
end
end

# :nodoc:
private def self.collect_tags(tag_counts, example : Example, tags)
if example_tags = example.tags
tags += example_tags
Expand All @@ -270,7 +267,6 @@ module Spec
end
end

# :nodoc:
private def self.print_list_tags(tag_counts : Hash(String, Int32)) : Nil
return if tag_counts.empty?
longest_name_size = tag_counts.keys.max_of(&.size)
Expand Down

0 comments on commit 3c8858a

Please sign in to comment.