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)