Skip to content

Commit 1b40328

Browse files
author
Oscar Smith
authored
remove hasmethod from callback
1 parent 01fd853 commit 1b40328

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/callbacks.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -588,13 +588,8 @@ function apply_callback!(integrator,
588588
end
589589

590590
if integrator.u_modified
591-
if hasmethod(reeval_internals_due_to_modification!,
592-
Tuple{typeof(integrator)}, (:callback_initializealg,))
593-
reeval_internals_due_to_modification!(
594-
integrator, callback_initializealg = callback.initializealg)
595-
else # handle legacy dispatch without kwarg
596-
reeval_internals_due_to_modification!(integrator)
597-
end
591+
reeval_internals_due_to_modification!(
592+
integrator, callback_initializealg = callback.initializealg)
598593

599594
@inbounds if callback.save_positions[2]
600595
savevalues!(integrator, true)

0 commit comments

Comments
 (0)