aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/re.c b/re.c
index 207a77d272..86066fd4a0 100644
--- a/re.c
+++ b/re.c
@@ -1489,9 +1489,6 @@ rb_reg_search0(VALUE re, VALUE str, long pos, int reverse, int set_backref_str)
if (err) rb_memerror();
}
else {
- if (rb_safe_level() >= 3)
- OBJ_TAINT(match);
- else
FL_UNSET(match, FL_TAINT);
}