diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-09-05 09:48:11 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-09-05 01:14:51 +0000 |
commit | 736092ec11c4a3e4aa643434a54b135a648765ea (patch) | |
tree | 568db177d8a8f0959a6162e6f6a5181238025c1b /lib/rdoc/comment.rb | |
parent | 3f6c92e9d592a2b122fb2260fccee7a7dd850cb8 (diff) |
[ruby/rdoc] Remove code for versions older than Ruby 2.3
https://github.com/ruby/rdoc/commit/a61b777df0
Diffstat (limited to 'lib/rdoc/comment.rb')
-rw-r--r-- | lib/rdoc/comment.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rdoc/comment.rb b/lib/rdoc/comment.rb index 63197492c4..fecdcac782 100644 --- a/lib/rdoc/comment.rb +++ b/lib/rdoc/comment.rb @@ -133,12 +133,7 @@ class RDoc::Comment # HACK dubious def encode! encoding - # TODO: Remove this condition after Ruby 2.2 EOL - if RUBY_VERSION < '2.3.0' - @text = @text.force_encoding encoding - else - @text = String.new @text, encoding: encoding - end + @text = String.new @text, encoding: encoding self end |