diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-15 19:20:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-12-16 00:25:51 +0900 |
commit | b257181ccc9cf46cfcbe085083f3ebffcd8abf09 (patch) | |
tree | 850148f56f7bbff5f7625693eabacb7d8895c16e /lib/rdoc/encoding.rb | |
parent | f38814564b1c8d9394ae4568fb0dfd2bbbfe3440 (diff) |
[ruby/rdoc] Remove unused method `RDoc::Encoding.remove_frozen_string_literal`
https://github.com/ruby/rdoc/commit/7a8e9a97fa
Diffstat (limited to 'lib/rdoc/encoding.rb')
-rw-r--r-- | lib/rdoc/encoding.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/rdoc/encoding.rb b/lib/rdoc/encoding.rb index 8a921c7011..67e190f782 100644 --- a/lib/rdoc/encoding.rb +++ b/lib/rdoc/encoding.rb @@ -86,17 +86,6 @@ module RDoc::Encoding nil end - def self.remove_frozen_string_literal string - string =~ /\A(?:#!.*\n)?(.*\n)/ - first_line = $1 - - if first_line =~ /\A# +frozen[-_]string[-_]literal[=:].+$/i - string = string.sub first_line, '' - end - - string - end - ## # Detects the encoding of +string+ based on the magic comment |