ruby-changes:51052
From: nobu <ko1@a...>
Date: Wed, 25 Apr 2018 20:57:05 +0900 (JST)
Subject: [ruby-changes:51052] nobu:r63259 (trunk): common.rb: unused constant
nobu 2018-04-25 20:56:58 +0900 (Wed, 25 Apr 2018) New Revision: 63259 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63259 Log: common.rb: unused constant * lib/uri/common.rb (URI::HTML5ASCIIINCOMPAT): remove the constant which has been unused since r40460, and wrong since r49069 due to the operator precedence. [ruby-core:86678] [Bug #14711] Modified files: trunk/lib/uri/common.rb Index: lib/uri/common.rb =================================================================== --- lib/uri/common.rb (revision 63258) +++ lib/uri/common.rb (revision 63259) @@ -354,9 +354,6 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L354 TBLDECWWWCOMP_['+'] = ' ' TBLDECWWWCOMP_.freeze - HTML5ASCIIINCOMPAT = defined? Encoding::UTF_7 ? [Encoding::UTF_7, Encoding::UTF_16BE, Encoding::UTF_16LE, - Encoding::UTF_32BE, Encoding::UTF_32LE] : [] # :nodoc: - # Encodes given +str+ to URL-encoded form data. # # This method doesn't convert *, -, ., 0-9, A-Z, _, a-z, but does convert SP -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/