From 46863df060d85aabdec52e1585eeb078ee6e5ef6 Mon Sep 17 00:00:00 2001 From: Rowan Crawford Date: Sat, 1 Mar 2014 22:54:29 +1300 Subject: Remove unused variable --- lib/normalize_string.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/normalize_string.rb') diff --git a/lib/normalize_string.rb b/lib/normalize_string.rb index 7131f05cf..3b6116970 100644 --- a/lib/normalize_string.rb +++ b/lib/normalize_string.rb @@ -33,7 +33,6 @@ def normalize_string_to_utf8(s, suggested_character_encoding=nil) # the encode('UTF-8'); move onto the next one... end else - to_encoding = 'UTF-8' begin converted = Iconv.conv 'UTF-8', from_encoding, s return converted @@ -45,7 +44,6 @@ def normalize_string_to_utf8(s, suggested_character_encoding=nil) end end raise EncodingNormalizationError, "Couldn't find a valid character encoding for the string" - end def convert_string_to_utf8_or_binary(s, suggested_character_encoding=nil) -- cgit v1.2.3