File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,13 @@ class RDoc::Context::Section
34
34
35
35
attr_reader :title
36
36
37
- @@sequence = "SEC00000"
38
-
39
37
##
40
38
# Creates a new section with +title+ and +comment+
41
39
42
40
def initialize parent , title , comment
43
41
@parent = parent
44
42
@title = title ? title . strip : title
45
43
46
- @@sequence = @@sequence . succ
47
- @sequence = @@sequence . dup
48
-
49
44
@comments = [ ]
50
45
51
46
add_comment comment
@@ -233,13 +228,5 @@ def remove_comment comment
233
228
end
234
229
end
235
230
236
- ##
237
- # Section sequence number (deprecated)
238
-
239
- def sequence
240
- warn "RDoc::Context::Section#sequence is deprecated, use #aref"
241
- @sequence
242
- end
243
-
244
231
end
245
232
Original file line number Diff line number Diff line change @@ -143,13 +143,5 @@ def test_remove_comment_document
143
143
assert_equal doc ( other_comment . parse ) , loaded . comments
144
144
end
145
145
146
- def test_sequence
147
- _ , err = verbose_capture_output do
148
- assert_match ( /\A SEC\d {5}\Z / , @s . sequence )
149
- end
150
-
151
- assert_equal "#{ @S } #sequence is deprecated, use #aref\n " , err
152
- end
153
-
154
146
end
155
147
You can’t perform that action at this time.
0 commit comments