summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io.c b/io.c
index f4dc499633..47d37d121a 100644
--- a/io.c
+++ b/io.c
@@ -12839,9 +12839,6 @@ opt_i_get(ID id, VALUE *var)
static VALUE
argf_inplace_mode_set(VALUE argf, VALUE val)
{
- if (rb_safe_level() >= 1 && OBJ_TAINTED(val))
- rb_insecure_operation();
-
if (!RTEST(val)) {
ARGF.inplace = Qfalse;
}