diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-13 14:06:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-20 18:06:19 +0900 |
commit | f5abcf767edcd475263ca9d8c06d0bb32a417ba9 (patch) | |
tree | bbb47c146f9bace6772045daa01c660e107a22de | |
parent | 56d33b3ea8cd2f8360ec891da10552d708522ab7 (diff) | |
download | ruby-f5abcf767edcd475263ca9d8c06d0bb32a417ba9.tar.gz |
[ruby/rdoc] Removed `RDoc::Context::Section#sequence`
It has been deprecated since 2011.
https://github.com/ruby/rdoc/commit/5c2aa0f77d
-rw-r--r-- | lib/rdoc/context/section.rb | 13 | ||||
-rw-r--r-- | test/rdoc/test_rdoc_context_section.rb | 8 |
2 files changed, 0 insertions, 21 deletions
diff --git a/lib/rdoc/context/section.rb b/lib/rdoc/context/section.rb index 11f9ceaf87..5fef4a9ffc 100644 --- a/lib/rdoc/context/section.rb +++ b/lib/rdoc/context/section.rb @@ -34,8 +34,6 @@ class RDoc::Context::Section attr_reader :title - @@sequence = "SEC00000" - ## # Creates a new section with +title+ and +comment+ @@ -43,9 +41,6 @@ class RDoc::Context::Section @parent = parent @title = title ? title.strip : title - @@sequence = @@sequence.succ - @sequence = @@sequence.dup - @comments = [] add_comment comment @@ -233,13 +228,5 @@ class RDoc::Context::Section end end - ## - # Section sequence number (deprecated) - - def sequence - warn "RDoc::Context::Section#sequence is deprecated, use #aref" - @sequence - end - end diff --git a/test/rdoc/test_rdoc_context_section.rb b/test/rdoc/test_rdoc_context_section.rb index c520ad05a5..24c68c49dd 100644 --- a/test/rdoc/test_rdoc_context_section.rb +++ b/test/rdoc/test_rdoc_context_section.rb @@ -143,13 +143,5 @@ class TestRDocContextSection < RDoc::TestCase assert_equal doc(other_comment.parse), loaded.comments end - def test_sequence - _, err = verbose_capture_output do - assert_match(/\ASEC\d{5}\Z/, @s.sequence) - end - - assert_equal "#{@S}#sequence is deprecated, use #aref\n", err - end - end |