Skip to content

Commit c1f73c7

Browse files
authored
Merge pull request #490 from JuliaRobotics/maint/20Q2/errGraphDFG
Don't make use of attic Deprecation of GraphsDFG but rather error
2 parents 77aa698 + f06cf17 commit c1f73c7

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

attic/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Deprecated Drivers
2+
3+
GraphsDFG is dependent on the archived Graphs.jl and no longer maintained from DFG v0.8.
4+
See https://github.com/JuliaRobotics/DistributedFactorGraphs.jl/issues/398 for more detail.
5+
6+
MetaGraphsDFG and SymbolDFG are unlikely to be revived again.

src/Deprecated.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@
99

1010
import Base: *
1111

12-
# FIXME remove! is it really needed? This is type piracy
1312
function *(a::Symbol, b::AbstractString)
14-
@warn "product * on ::Symbol ::String has been deprecated, please use Symbol(string(a,b)) directly"
13+
@warn "product * on ::Symbol ::String has been deprecated, please use Symbol(string(a,b)) or Symbol(a,b) directly"
1514
Symbol(string(a,b))
1615
end
1716

1817
setTimestamp!(f::FactorDataLevel1, ts::DateTime) = error("setTimestamp!(f::FactorDataLevel1, ts::DateTime) is deprecated")
1918

20-
include("../attic/GraphsDFG/GraphsDFG.jl")
21-
@reexport using .GraphsDFGs
19+
export GraphsDFG
20+
struct GraphsDFG{AbstractParams}
21+
GraphsDFG{T}() where T = error("GraphsDFG is deprecated, use LightDFG, see https://github.com/JuliaRobotics/DistributedFactorGraphs.jl/issues/398")
22+
end
23+
GraphsDFG(args...; kwargs...) = GraphsDFG{AbstractParams}()
24+
GraphsDFG{T}(args...; kwargs...) where T = GraphsDFG{T}()
25+
2226

2327
@deprecate getInternalId(args...) error("getInternalId is no longer in use")
2428

0 commit comments

Comments
 (0)