From 27e972854caffe0b367fd2f2d73a11c55604bde7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Apr 2018 11:56:58 +0000 Subject: 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/uri') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 7200f8b1d7..ab4a8e382b 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -354,9 +354,6 @@ module URI 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 -- cgit v1.2.3