From 9b535f3ff7c2f48e34dd44564df7adc723b81276 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 31 Aug 2020 21:24:36 +0200 Subject: Interpolated strings are no longer frozen with frozen-string-literal: true * Remove freezestring instruction since this was the only usage for it. * [Feature #17104] --- vm_insnhelper.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'vm_insnhelper.c') 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) { -- cgit v1.2.3