diff options
| author | Carson McDonald <[email protected]> | 2013-08-13 11:38:27 -0400 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-08-13 11:38:27 -0400 |
| commit | 7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13 (patch) | |
| tree | 24123fe8bfc1c46b38ede86eaacda695965d162b | |
| parent | 9827462e38f7dfb52e3d7bb61ef183e0cd9189ff (diff) | |
| download | mruby-7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13.tar.gz mruby-7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13.zip | |
This check and class change is redundant because it is done in class.c#mrb_include_module
| -rw-r--r-- | src/vm.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; |
