diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-18 05:39:30 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-18 05:39:30 +0000 |
commit | 7497452930b067b1dcdcc204bf9a6f34cd3d5d18 (patch) | |
tree | 39f2129fd933bd64b1597b0fc66b3e0e9bf8a1c6 /string.c | |
parent | 80afc9b2f38ef566ca3d46da4bb6876f788c50e4 (diff) | |
download | ruby-7497452930b067b1dcdcc204bf9a6f34cd3d5d18.tar.gz |
* string.c (str_alloc): no need to clear RString (already cleared).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -382,11 +382,6 @@ static inline VALUE str_alloc(VALUE klass) { NEWOBJ_OF(str, struct RString, klass, T_STRING | (RGENGC_WB_PROTECTED_STRING ? FL_WB_PROTECTED : 0)); - - str->as.heap.ptr = 0; - str->as.heap.len = 0; - str->as.heap.aux.capa = 0; - return (VALUE)str; } |