Skip to content

Commit 9cf4394

Browse files
committed
depr warn in __init__
1 parent 70f46cf commit 9cf4394

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Deprecated.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ end
133133

134134
export AbstractRelativeFactor, AbstractRelativeFactorMinimize
135135

136-
@warn("BREAKING CHANGE v0.12: deprecating AbstractRelativeFactor, use AbstractRelativeRoots instead")
137-
@warn("BREAKING CHANGE v0.12: deprecating AbstractRelativeFactorMinimize, use AbstractRelativeMinimize instead")
138-
139136
const AbstractRelativeFactor = AbstractRelativeRoots
140137
const AbstractRelativeFactorMinimize = AbstractRelativeMinimize
141138

src/DistributedFactorGraphs.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ if get(ENV, "DFG_USE_CGDFG", "") == "true"
306306
end
307307

308308
function __init__()
309+
@warn("BREAKING CHANGE v0.12: deprecating AbstractRelativeFactor, use AbstractRelativeRoots instead")
310+
@warn("BREAKING CHANGE v0.12: deprecating AbstractRelativeFactorMinimize, use AbstractRelativeMinimize instead")
311+
309312
@require GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231" begin
310313
@info "Including Plots"
311314
include("DFGPlots/DFGPlots.jl")

0 commit comments

Comments
 (0)