From 26bfc671be43c13bd04bfa6680b4be7ef2d70b6e Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 8 Feb 2026 16:32:24 +0100 Subject: [PATCH] Remove rdoc coverage workaround This is long dead code --- rakelib/rdoc.rake | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/rakelib/rdoc.rake b/rakelib/rdoc.rake index 340a5cd831..5bba3e3cd5 100644 --- a/rakelib/rdoc.rake +++ b/rakelib/rdoc.rake @@ -7,30 +7,6 @@ rescue LoadError return end -if RDoc::VERSION <= "6.5.0" - # RDoc 6.5.0 and earlier did not create an rdoc:coverage task. This patches it - # in in the same way newer versions do. - RDoc::Task.prepend( - Module.new { - def define - super.tap do - namespace rdoc_task_name do - desc "Print RDoc coverage report" - task :coverage do - @before_running_rdoc.call if @before_running_rdoc - opts = option_list << "-C" - args = opts + @rdoc_files - - $stderr.puts "rdoc #{args.join(" ")}" if Rake.application.options.trace - RDoc::RDoc.new.document(args) - end - end - end - end - } - ) -end - RDoc::Task.new(:rdoc) do |rdoc| rdoc.main = "README.md" rdoc.markup = "markdown"