diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-03 10:56:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-03 10:56:36 +0000 |
commit | 1329c7cdca5cca07e8680a28724b3f192144f04e (patch) | |
tree | 369dbfb983f6e33adc669c8d02f0cb4a2f469ffb /ext/date/date_core.c | |
parent | f0204a254789608edc46515f181b1f52ec106442 (diff) |
date: make zone a substring to copy encoding and taintedness
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 88be90b6bc..812548aeaa 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -4306,16 +4306,6 @@ date_s__parse_internal(int argc, VALUE *argv, VALUE klass) hash = date__parse(vstr, vcomp); - { - VALUE zone = ref_hash("zone"); - - if (!NIL_P(zone)) { - rb_enc_copy(zone, vstr); - OBJ_INFECT(zone, vstr); - set_hash("zone", zone); - } - } - return hash; } |