aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 21:40:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 21:40:55 +0000
commitf807c0113389648dc4d97604cef50b185f1781af (patch)
tree30460b0247350697e3e80016db31fc5491c04547 /error.c
parent77302a925f33b448e91f34870446a27a3c48898c (diff)
downloadruby-f807c0113389648dc4d97604cef50b185f1781af.tar.gz
remove rb_thread_t::base_block
* error.c (rb_compile_err_append): rb_thread_t::base_block is no longer used. * iseq.c (rb_iseq_compile_with_option): ditto, no protection is needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/error.c b/error.c
index 6bd45bd021..d841650c92 100644
--- a/error.c
+++ b/error.c
@@ -97,12 +97,6 @@ compile_snprintf(rb_encoding *enc, const char *pre, const char *file, int line,
VALUE
rb_compile_err_append(VALUE buffer, VALUE mesg)
{
- rb_thread_t *th = GET_THREAD();
- rb_block_t *prev_base_block = th->base_block;
- th->base_block = 0;
- /* base_block should be zero while normal Ruby execution */
- /* after this line, any Ruby code *can* run */
-
if (!buffer) {
rb_str_cat2(mesg, "\n");
rb_write_error_str(mesg);
@@ -115,8 +109,6 @@ rb_compile_err_append(VALUE buffer, VALUE mesg)
rb_str_append(buffer, mesg);
}
- /* returned to the parser world */
- th->base_block = prev_base_block;
return buffer;
}