Skip to content

Commit bf5d5b6

Browse files
committed
fix getTags placement issue
1 parent 54304cc commit bf5d5b6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/Common.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,16 @@ function findVariableNearTimestamp(dfg::AbstractDFG,
391391
return RET
392392
end
393393

394+
"""
395+
$SIGNATURES
396+
397+
Return the tags for a variable or factor.
398+
"""
399+
function getTags(dfg::InMemoryDFGTypes, sym::Symbol)
400+
getFnc = isVariable(dfg,sym) ? getVariable : getFactor
401+
getTags(getFnc(dfg, sym))
402+
end
403+
394404
"""
395405
$SIGNATURES
396406

src/CommonAccessors.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ Return the tags for a variable.
4040
"""
4141
getTags(v::DataLevel0) = v.tags
4242

43-
function getTags(dfg::InMemoryDFGTypes, sym::Symbol)
44-
getFnc = isVariable(dfg,sym) ? getVariable : getFactor
45-
getTags(getFnc(dfg, sym))
46-
end
4743

4844
"""
4945
$SIGNATURES

0 commit comments

Comments
 (0)