diff options
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/encoding.c b/encoding.c index 422744478e..ec8303cfeb 100644 --- a/encoding.c +++ b/encoding.c @@ -78,7 +78,6 @@ rb_to_encoding_index(VALUE enc) { int idx; - if (NIL_P(enc)) return 0; idx = enc_check_encoding(enc); if (idx >= 0) { return idx; @@ -96,7 +95,6 @@ rb_to_encoding(VALUE enc) { int idx; - if (NIL_P(enc)) return 0; idx = enc_check_encoding(enc); if (idx >= 0) return RDATA(enc)->data; if ((idx = rb_enc_find_index(StringValueCStr(enc))) < 0) { |