From f5abcf767edcd475263ca9d8c06d0bb32a417ba9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 13 Feb 2020 14:06:07 +0900 Subject: [ruby/rdoc] Removed `RDoc::Context::Section#sequence` It has been deprecated since 2011. https://github.com/ruby/rdoc/commit/5c2aa0f77d --- lib/rdoc/context/section.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/rdoc/context/section.rb') 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 -- cgit v1.2.3