Skip to content

Commit 60cdcb8

Browse files
refactor: remove old remake(::Union{SDEFunction, SDDEFunction})
1 parent 28c144e commit 60cdcb8

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/remake.jl

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -449,42 +449,6 @@ function remake(prob::SDEProblem;
449449
return prob
450450
end
451451

452-
"""
453-
remake(func::SDEFunction; f = missing, g = missing,
454-
mass_matrix = missing, analytic = missing, kwargs...)
455-
456-
Remake the given `SDEFunction`.
457-
"""
458-
function remake(func::Union{SDEFunction, SDDEFunction};
459-
f = missing,
460-
g = missing,
461-
mass_matrix = missing,
462-
analytic = missing,
463-
sys = missing,
464-
kwargs...)
465-
props = getproperties(func)
466-
props = @delete props.f
467-
props = @delete props.g
468-
@reset props.mass_matrix = coalesce(mass_matrix, func.mass_matrix)
469-
@reset props.analytic = coalesce(analytic, func.analytic)
470-
@reset props.sys = coalesce(sys, func.sys)
471-
472-
if f === missing
473-
f = func.f
474-
end
475-
476-
if g === missing
477-
g = func.g
478-
end
479-
480-
if f isa AbstractSciMLFunction
481-
f = f.f
482-
end
483-
484-
T = func isa SDEFunction ? SDEFunction : SDDEFunction
485-
return T{isinplace(func)}(f, g; props..., kwargs...)
486-
end
487-
488452
function remake(prob::DDEProblem; f = missing, h = missing, u0 = missing,
489453
tspan = missing, p = missing, constant_lags = missing,
490454
dependent_lags = missing, order_discontinuity_t0 = missing,

0 commit comments

Comments
 (0)