Skip to content

Commit 5c2aa0f

Browse files
committed
Removed RDoc::Context::Section#sequence
It has been deprecated since 2011.
1 parent 7418280 commit 5c2aa0f

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

lib/rdoc/context/section.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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-
244231
end
245232

test/rdoc/test_rdoc_context_section.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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(/\ASEC\d{5}\Z/, @s.sequence)
149-
end
150-
151-
assert_equal "#{@S}#sequence is deprecated, use #aref\n", err
152-
end
153-
154146
end
155147

0 commit comments

Comments
 (0)