Skip to content

Commit e0df965

Browse files
committed
drop excess args in packVariable
1 parent 232f20d commit e0df965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/Serialization.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ end
296296

297297

298298
# returns a PackedVariableNodeData
299-
function packVariableNodeData(::G, d::VariableNodeData{T}) where {G <: AbstractDFG, T <: InferenceVariable}
299+
# FIXME, remove ::G
300+
function packVariableNodeData(d::VariableNodeData{T}) where {T <: InferenceVariable}
300301
@debug "Dispatching conversion variable -> packed variable for type $(string(d.variableType))"
301302
# TODO change to Vector{Vector{Float64}} which can be directly packed by JSON
302303
castval = if 0 < length(d.val)
@@ -329,6 +330,9 @@ function packVariableNodeData(::G, d::VariableNodeData{T}) where {G <: AbstractD
329330
d.solveKey)
330331
end
331332

333+
# @deprecate
334+
packVariableNodeData(::G, d::VariableNodeData{T}) where {G <: AbstractDFG, T <: InferenceVariable} = packVariableNodeData(d)
335+
332336
function unpackVariableNodeData(dfg::G, d::PackedVariableNodeData) where G <: AbstractDFG
333337
@debug "Dispatching conversion packed variable -> variable for type $(string(d.variableType))"
334338
# Figuring out the variableType

0 commit comments

Comments
 (0)