diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index 3ec3315320..97c0511eda 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -587,7 +587,7 @@ def look_for_directives_in container, comment end end - remove_private_comments comment + comment.remove_private end ## @@ -2054,15 +2054,6 @@ def record_location container # :nodoc: container.record_location @top_level end - ## - # Removes private comments from +comment+ - #-- - # TODO remove - - def remove_private_comments comment - comment.remove_private - end - ## # Scans this Ruby file for Ruby constructs