From 21f51c5b495f36a6dd1088a9e6467babe6964ef5 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 20 Oct 2024 10:58:07 -0400 Subject: [PATCH] Remove other hasmethod from callbacks --- src/callbacks.jl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/callbacks.jl b/src/callbacks.jl index 26a5bf498..142ac93bb 100644 --- a/src/callbacks.jl +++ b/src/callbacks.jl @@ -614,13 +614,8 @@ end integrator.u_modified = true callback.affect!(integrator) if integrator.u_modified - if hasmethod(reeval_internals_due_to_modification!, - Tuple{typeof(integrator), Bool}, (:callback_initializealg,)) - reeval_internals_due_to_modification!( - integrator, false, callback_initializealg = callback.initializealg) - else # handle legacy dispatch without kwarg - reeval_internals_due_to_modification!(integrator, false) - end + reeval_internals_due_to_modification!( + integrator, false, callback_initializealg = callback.initializealg) end @inbounds if callback.save_positions[2] savevalues!(integrator, true)