aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte/chars.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-22 17:15:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-22 17:15:56 -0700
commitcdef4450e550954a9f04255cb0b5cf80e52874fe (patch)
tree541268d2996d516f761e5ef9a08f7140e0285f4a /activesupport/lib/active_support/multibyte/chars.rb
parent8f171b4d6915109068e5e1c1aa37038b8311f15a (diff)
downloadrails-cdef4450e550954a9f04255cb0b5cf80e52874fe.tar.gz
rails-cdef4450e550954a9f04255cb0b5cf80e52874fe.tar.bz2
rails-cdef4450e550954a9f04255cb0b5cf80e52874fe.zip
removing unused code
Diffstat (limited to 'activesupport/lib/active_support/multibyte/chars.rb')
-rw-r--r--activesupport/lib/active_support/multibyte/chars.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb
index 019fb2df06..afbdd2c272 100644
--- a/activesupport/lib/active_support/multibyte/chars.rb
+++ b/activesupport/lib/active_support/multibyte/chars.rb
@@ -437,7 +437,7 @@ module ActiveSupport #:nodoc:
begin
@wrapped_string[0...byte_offset].unpack('U*').length
- rescue ArgumentError => e
+ rescue ArgumentError
byte_offset -= 1
retry
end