Skip to content

Commit 30b7109

Browse files
committed
Remove RDoc::RDoc#exclude
The property is copied from @options and not used. It's inappropriately complicated for the processing the option.
1 parent 81522d7 commit 30b7109

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/rdoc/rdoc.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ class RDoc::RDoc
3535

3636
GENERATORS = {}
3737

38-
##
39-
# File pattern to exclude
40-
41-
attr_accessor :exclude
42-
4338
##
4439
# Generator instance used for creating output
4540

@@ -93,7 +88,6 @@ def self.current= rdoc
9388

9489
def initialize
9590
@current = nil
96-
@exclude = nil
9791
@generator = nil
9892
@last_modified = {}
9993
@old_siginfo = nil
@@ -116,7 +110,7 @@ def error(msg)
116110
def gather_files files
117111
files = ["."] if files.empty?
118112

119-
file_list = normalized_file_list files, true, @exclude
113+
file_list = normalized_file_list files, true, @options.exclude
120114

121115
file_list = file_list.uniq
122116

@@ -472,8 +466,6 @@ def document options
472466
exit
473467
end
474468

475-
@exclude = @options.exclude
476-
477469
unless @options.coverage_report then
478470
@last_modified = setup_output_dir @options.op_dir, @options.force_update
479471
end

0 commit comments

Comments
 (0)