summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorCarson McDonald <[email protected]>2013-08-13 11:38:27 -0400
committerCarson McDonald <[email protected]>2013-08-13 11:38:27 -0400
commit7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13 (patch)
tree24123fe8bfc1c46b38ede86eaacda695965d162b /src
parent9827462e38f7dfb52e3d7bb61ef183e0cd9189ff (diff)
downloadmruby-7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13.tar.gz
mruby-7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13.zip
This check and class change is redundant because it is done in class.c#mrb_include_module
Diffstat (limited to 'src')
-rw-r--r--src/vm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vm.c b/src/vm.c
index 3a149258f..3765d0cc2 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -897,12 +897,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
else {
ci->argc = n;
}
- if (c->tt == MRB_TT_ICLASS) {
- ci->target_class = c->c;
- }
- else {
- ci->target_class = c;
- }
+ ci->target_class = c;
ci->pc = pc + 1;
ci->acc = a;