Skip to content

Commit

Permalink
[mono] Remove dead code. (#70671)
Browse files Browse the repository at this point in the history
A variable initialized to false and never modified means we can remove the
variable and any code that depends on that variable not being false.

This is a consequence of 15ab9f9, where code
that assigned the variable was removed.
  • Loading branch information
rolfbjarne authored Jun 14, 2022
1 parent 20e5237 commit e5acd4d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/mono/mono/mini/mini-exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,11 +2272,7 @@ mono_handle_exception_internal (MonoContext *ctx, MonoObject *obj, gboolean resu
mini_set_abort_threshold (&catch_frame);
mono_unhandled_exception_internal (obj);
} else {
gboolean unhandled = FALSE;

if (unhandled)
mono_component_debugger ()->handle_exception ((MonoException *)obj, ctx, NULL, NULL);
else if (!ji || (jinfo_get_method (ji)->wrapper_type == MONO_WRAPPER_RUNTIME_INVOKE)) {
if (!ji || (jinfo_get_method (ji)->wrapper_type == MONO_WRAPPER_RUNTIME_INVOKE)) {
if (last_mono_wrapper_runtime_invoke && !mono_thread_internal_current ()->threadpool_thread) {
mono_component_debugger ()->handle_exception ((MonoException *)obj, ctx, NULL, NULL);
if (mini_get_debug_options ()->top_runtime_invoke_unhandled) {
Expand Down

0 comments on commit e5acd4d

Please sign in to comment.