Skip to content

Commit e5acd4d

Browse files
authored
[mono] Remove dead code. (#70671)
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.
1 parent 20e5237 commit e5acd4d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mono/mono/mini/mini-exceptions.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,11 +2272,7 @@ mono_handle_exception_internal (MonoContext *ctx, MonoObject *obj, gboolean resu
22722272
mini_set_abort_threshold (&catch_frame);
22732273
mono_unhandled_exception_internal (obj);
22742274
} else {
2275-
gboolean unhandled = FALSE;
2276-
2277-
if (unhandled)
2278-
mono_component_debugger ()->handle_exception ((MonoException *)obj, ctx, NULL, NULL);
2279-
else if (!ji || (jinfo_get_method (ji)->wrapper_type == MONO_WRAPPER_RUNTIME_INVOKE)) {
2275+
if (!ji || (jinfo_get_method (ji)->wrapper_type == MONO_WRAPPER_RUNTIME_INVOKE)) {
22802276
if (last_mono_wrapper_runtime_invoke && !mono_thread_internal_current ()->threadpool_thread) {
22812277
mono_component_debugger ()->handle_exception ((MonoException *)obj, ctx, NULL, NULL);
22822278
if (mini_get_debug_options ()->top_runtime_invoke_unhandled) {

0 commit comments

Comments
 (0)