diff options
author | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:02:14 -0300 |
---|---|---|
committer | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:02:14 -0300 |
commit | 51648a6fee31c9642d3ce8899a1c718e1604f4bc (patch) | |
tree | b36838b613ed878671d01031e9ef382d1613a098 /activesupport/lib/active_support/multibyte/utils.rb | |
parent | 9ea34ad3875243b9dd57a7fbd9ff6fa9c55872ac (diff) | |
download | rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.tar.gz rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.tar.bz2 rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.zip |
Remove multibyte utils
This is neither a public API, nor used internally, so let's remove it.
Diffstat (limited to 'activesupport/lib/active_support/multibyte/utils.rb')
-rw-r--r-- | activesupport/lib/active_support/multibyte/utils.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/activesupport/lib/active_support/multibyte/utils.rb b/activesupport/lib/active_support/multibyte/utils.rb deleted file mode 100644 index bd6d4bad41..0000000000 --- a/activesupport/lib/active_support/multibyte/utils.rb +++ /dev/null @@ -1,27 +0,0 @@ -# encoding: utf-8 - -module ActiveSupport #:nodoc: - module Multibyte #:nodoc: - # Returns a regular expression that matches valid characters in the current encoding - def self.valid_character - VALID_CHARACTER[Encoding.default_external.to_s] - end - - # Verifies the encoding of a string - def self.verify(string) - string.valid_encoding? - end - - # Verifies the encoding of the string and raises an exception when it's not valid - def self.verify!(string) - raise EncodingError.new("Found characters with invalid encoding") unless verify(string) - end - - # Removes all invalid characters from the string. - # - # Note: this method is a no-op in Ruby 1.9 - def self.clean(string) - string - end - end -end |