aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRowan Crawford <wombleton@gmail.com>2014-03-01 22:54:29 +1300
committerRowan Crawford <wombleton@gmail.com>2014-03-01 22:54:29 +1300
commit46863df060d85aabdec52e1585eeb078ee6e5ef6 (patch)
tree67c9d584b71150099dbcf81277d94dac5308b7b3
parent7d4646c2a3ad98000160e30bfa92996d8c0d3b3a (diff)
Remove unused variable
-rw-r--r--lib/normalize_string.rb2
1 files changed, 0 insertions, 2 deletions
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)