update.
[chise/ruby.git] / chise / iconv.rb
index e6f97cb..2c4d3c8 100755 (executable)
@@ -76,11 +76,4 @@ class String
 
   def u16toeuc()       Iconv.iconv_to_from("EUC-JP", "UTF-16", self)   end
   def u16tosjis()      Iconv.iconv_to_from("Shift_JIS", "UTF-16", self) end
-
-  def u32to_i
-    return 0 if length == 0
-    s = self
-#    return (s[3] << 24 | s[2] << 16 | s[1] << 8 | s[0])
-    return (s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3])
-  end
 end