summaryrefslogtreecommitdiffhomepage
path: root/src/kernel.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-04-23 18:30:49 +0900
committerYukihiro Matsumoto <[email protected]>2012-04-23 18:30:49 +0900
commitd4ef3baca86fdf54c76db53fafa45116651782c9 (patch)
tree081e6381cdf70ccad24837ba87d458868ab4c1c6 /src/kernel.c
parent1605ec8cd4f82a6b7e63d449ed048ddb8760fe40 (diff)
downloadmruby-d4ef3baca86fdf54c76db53fafa45116651782c9.tar.gz
mruby-d4ef3baca86fdf54c76db53fafa45116651782c9.zip
remove code for unsupported taint-mode
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c5
1 files changed, 2 insertions, 3 deletions
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 <i>obj</i>---the instance variables of
* <i>obj</i> are copied, but not the objects they reference. Copies
- * the frozen and tainted state of <i>obj</i>. See also the discussion
+ * the frozen state of <i>obj</i>. See also the discussion
* under <code>Object#dup</code>.
*
* 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 <i>obj</i>---the instance variables of
* <i>obj</i> are copied, but not the objects they reference.
- * <code>dup</code> copies the tainted state of <i>obj</i>. See also
+ * <code>dup</code> copies the frozen state of <i>obj</i>. See also
* the discussion under <code>Object#clone</code>. In general,
* <code>clone</code> and <code>dup</code> may have different semantics
* in descendant classes. While <code>clone</code> is used to duplicate