diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 08:05:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-13 08:05:00 +0000 |
commit | e18e89384675fb9e0923bbea6c8923d99b8abdbf (patch) | |
tree | 8cfafdd2f14422c6f8d029eb367cd3adb66baad6 /encoding.c | |
parent | af69c730879ecd0ae4e63732d46522659c053b70 (diff) | |
download | ruby-e18e89384675fb9e0923bbea6c8923d99b8abdbf.tar.gz |
* encoding.c (enc_get_encoding): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/encoding.c b/encoding.c index ef3b89d7bf..0562281d51 100644 --- a/encoding.c +++ b/encoding.c @@ -68,16 +68,6 @@ enc_check_encoding(VALUE obj) return index; } -static rb_encoding * -enc_get_encoding(VALUE obj) -{ - if (enc_check_encoding(obj) < 0) { - rb_raise(rb_eTypeError, "wrong argument type %s (expected Encoding)", - rb_obj_classname(obj)); - } - return RDATA(obj)->data; -} - int rb_to_encoding_index(VALUE enc) { |