From d4ef3baca86fdf54c76db53fafa45116651782c9 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 23 Apr 2012 18:30:49 +0900 Subject: remove code for unsupported taint-mode --- src/kernel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/kernel.c') diff --git a/src/kernel.c b/src/kernel.c index 40db88b12..0badb4366 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -408,7 +408,7 @@ init_copy(mrb_state *mrb, mrb_value dest, mrb_value obj) * * Produces a shallow copy of obj---the instance variables of * obj are copied, but not the objects they reference. Copies - * the frozen and tainted state of obj. See also the discussion + * the frozen state of obj. See also the discussion * under Object#dup. * * class Klass @@ -437,7 +437,6 @@ mrb_obj_clone(mrb_state *mrb, mrb_value self) } clone = mrb_obj_alloc(mrb, self.tt, mrb_obj_class(mrb, self)); clone->c = mrb_singleton_class_clone(mrb, self); - //RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT) | FL_TEST(clone, FL_UNTRUSTED)) & ~(FL_FREEZE|FL_FINALIZE); init_copy(mrb, mrb_obj_value(clone), self); //1-9-2 no bug mrb_funcall(mrb, clone, "initialize_clone", 1, self); //RBASIC(clone)->flags |= RBASIC(obj)->flags & FL_FREEZE; @@ -452,7 +451,7 @@ mrb_obj_clone(mrb_state *mrb, mrb_value self) * * Produces a shallow copy of obj---the instance variables of * obj are copied, but not the objects they reference. - * dup copies the tainted state of obj. See also + * dup copies the frozen state of obj. See also * the discussion under Object#clone. In general, * clone and dup may have different semantics * in descendant classes. While clone is used to duplicate -- cgit v1.2.3