Skip to content

Commit

Permalink
* thread.c (thread_start_func_2): remove unused code.
Browse files Browse the repository at this point in the history
  errinfo = th->errinfo; and errinfo = rb_errinfo(); are
  the same.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Nov 28, 2012
1 parent 1d207fc commit fdda95e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Thu Nov 29 06:27:55 2012 KOSAKI Motohiro <[email protected]>

* thread.c (thread_start_func_2): remove unused code.
errinfo = th->errinfo; and errinfo = rb_errinfo(); are
the same.

Thu Nov 29 06:24:15 2012 KOSAKI Motohiro <[email protected]>

* thread.c (thread_start_func_2): remove unused code. security
Expand Down
1 change: 0 additions & 1 deletion thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
}
else {
errinfo = th->errinfo;
if (NIL_P(errinfo)) errinfo = rb_errinfo();
if (state == TAG_FATAL) {
/* fatal error within this thread, need to stop whole script */
}
Expand Down

0 comments on commit fdda95e

Please sign in to comment.