aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-08-31 21:24:36 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-09-15 21:32:35 +0200
commit9b535f3ff7c2f48e34dd44564df7adc723b81276 (patch)
treeea88978c58cd1cc371e6c51a163edb8e3c64e8c1 /vm_insnhelper.c
parentfbba6bd4e3dff7a61965208fecae908f10c4edbe (diff)
downloadruby-9b535f3ff7c2f48e34dd44564df7adc723b81276.tar.gz
Interpolated strings are no longer frozen with frozen-string-literal: true
* Remove freezestring instruction since this was the only usage for it. * [Feature #17104]
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 428331a902..6f725a2f02 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3816,15 +3816,6 @@ vm_get_special_object(const VALUE *const reg_ep,
}
}
-static void
-vm_freezestring(VALUE str, VALUE debug)
-{
- if (!NIL_P(debug)) {
- rb_ivar_set(str, id_debug_created_info, debug);
- }
- rb_str_freeze(str);
-}
-
static VALUE
vm_concat_array(VALUE ary1, VALUE ary2st)
{