Skip to content

Commit

Permalink
refactor: remove old remake(::DDEFunction)
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 13, 2024
1 parent c4551dd commit d814e2c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/remake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -517,28 +517,6 @@ function remake(prob::DDEProblem; f = missing, h = missing, u0 = missing,
return prob
end

function remake(func::DDEFunction;
f = missing,
mass_matrix = missing,
analytic = missing,
sys = missing,
kwargs...)
props = getproperties(func)
props = @delete props.f
@reset props.mass_matrix = coalesce(mass_matrix, func.mass_matrix)
@reset props.analytic = coalesce(analytic, func.analytic)
@reset props.sys = coalesce(sys, func.sys)

if f === missing
f = func.f
end
if f isa AbstractSciMLFunction
f = f.f
end

return DDEFunction{isinplace(func)}(f; props..., kwargs...)
end

function remake(prob::SDDEProblem;
f = missing,
g = missing,
Expand Down

0 comments on commit d814e2c

Please sign in to comment.