Skip to content

Commit

Permalink
Remove RDoc::RDoc#exclude
Browse files Browse the repository at this point in the history
The property is copied from @options and not used. It's inappropriately
complicated for the processing the option.
  • Loading branch information
aycabta committed Feb 24, 2018
1 parent 81522d7 commit 30b7109
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/rdoc/rdoc.rb
Expand Up @@ -35,11 +35,6 @@ class RDoc::RDoc

GENERATORS = {}

##
# File pattern to exclude

attr_accessor :exclude

##
# Generator instance used for creating output

Expand Down Expand Up @@ -93,7 +88,6 @@ def self.current= rdoc

def initialize
@current = nil
@exclude = nil
@generator = nil
@last_modified = {}
@old_siginfo = nil
Expand All @@ -116,7 +110,7 @@ def error(msg)
def gather_files files
files = ["."] if files.empty?

file_list = normalized_file_list files, true, @exclude
file_list = normalized_file_list files, true, @options.exclude

file_list = file_list.uniq

Expand Down Expand Up @@ -472,8 +466,6 @@ def document options
exit
end

@exclude = @options.exclude

unless @options.coverage_report then
@last_modified = setup_output_dir @options.op_dir, @options.force_update
end
Expand Down

0 comments on commit 30b7109

Please sign in to comment.