Skip to content

Commit 25c24a3

Browse files
committed
Remove params deprecation Close #551
1 parent a87352c commit 25c24a3

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/LightDFG/entities/LightDFG.jl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,12 @@ Create an in-memory LightDFG with the following parameters:
5757
- F: Factor type
5858
"""
5959
function LightDFG{T}(g::FactorGraph{Int,DFGVariable,DFGFactor}=FactorGraph{Int,DFGVariable,DFGFactor}();
60-
params=nothing,
6160
kwargs...) where T <: AbstractParams
62-
63-
#TODO remove params deprecation error in v0.9
64-
if params != nothing
65-
@warn "keyword `params` is deprecated, please use solverParams"
66-
return LightDFG{T,DFGVariable,DFGFactor}(g; solverParams = params, kwargs...)
67-
end
6861
return LightDFG{T,DFGVariable,DFGFactor}(g; kwargs...)
6962
end
7063

7164
function LightDFG(g::FactorGraph{Int,DFGVariable,DFGFactor}=FactorGraph{Int,DFGVariable,DFGFactor}();
72-
solverParams::T=NoSolverParams(), params=nothing, kwargs...) where T
73-
#TODO remove params deprecation error in v0.9
74-
if params != nothing
75-
@warn "keyword `params` is deprecated, please use solverParams"
76-
return LightDFG{typeof(params),DFGVariable,DFGFactor}(g; solverParams=params, kwargs...)
77-
end
65+
solverParams::T=NoSolverParams(), kwargs...) where T
7866
return LightDFG{T,DFGVariable,DFGFactor}(g; solverParams=solverParams, kwargs...)
7967
end
8068

0 commit comments

Comments
 (0)