* string.c (rb_enc_str_copy): removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-02-28 05:38:16 +00:00
parent ecd35c0d96
commit 7bb2b2f431
2 changed files with 4 additions and 12 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 28 14:36:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_enc_str_copy): removed.
Thu Feb 28 13:51:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (stack_check): made flag per threads.

View File

@ -253,18 +253,6 @@ rb_str_coderange_scan_restartable(const char *s, const char *e, rb_encoding *enc
}
}
#if 0
static void
rb_enc_str_copy(VALUE dest, VALUE src)
{
rb_enc_copy(dest, src);
if (RSTRING_PTR(dest) == RSTRING_PTR(src) &&
RSTRING_LEN(dest) == RSTRING_LEN(src)) {
ENC_CODERANGE_SET(dest, ENC_CODERANGE(src));
}
}
#endif
static void
rb_enc_cr_str_copy_for_substr(VALUE dest, VALUE src)
{