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
3434
3535 attr_reader :title
3636
37- @@sequence = "SEC00000"
38-
3937 ##
4038 # Creates a new section with +title+ and +comment+
4139
4240 def initialize parent , title , comment
4341 @parent = parent
4442 @title = title ? title . strip : title
4543
46- @@sequence = @@sequence . succ
47- @sequence = @@sequence . dup
48-
4944 @comments = [ ]
5045
5146 add_comment comment
@@ -233,13 +228,5 @@ def remove_comment comment
233228 end
234229 end
235230
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-
244231end
245232
Original file line number Diff line number Diff line change @@ -143,13 +143,5 @@ def test_remove_comment_document
143143 assert_equal doc ( other_comment . parse ) , loaded . comments
144144 end
145145
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-
154146end
155147
You can’t perform that action at this time.
0 commit comments