* encoding.c (enc_get_encoding): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af69c73087
commit
e18e893846
10
encoding.c
10
encoding.c
@ -68,16 +68,6 @@ enc_check_encoding(VALUE obj)
|
|||||||
return index;
|
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
|
int
|
||||||
rb_to_encoding_index(VALUE enc)
|
rb_to_encoding_index(VALUE enc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user