[ruby/rdoc] Remove unused method RDoc::Encoding.remove_frozen_string_literal
https://github.com/ruby/rdoc/commit/7a8e9a97fa
This commit is contained in:
parent
f38814564b
commit
b257181ccc
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user