Skip to content

Commit 7a93e4b

Browse files
committed
Remove deprecated link! / invlink!
1 parent 19e2076 commit 7a93e4b

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

src/varinfo.jl

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,27 +1215,6 @@ function link!!(
12151215
return Accessors.@set vi.varinfo = DynamicPPL.link!!(t, vi.varinfo, spl, model)
12161216
end
12171217

1218-
"""
1219-
link!(vi::VarInfo, spl::Sampler)
1220-
1221-
Transform the values of the random variables sampled by `spl` in `vi` from the support
1222-
of their distributions to the Euclidean space and set their corresponding `"trans"`
1223-
flag values to `true`.
1224-
"""
1225-
function link!(vi::VarInfo, spl::AbstractSampler)
1226-
Base.depwarn(
1227-
"`link!(varinfo, sampler)` is deprecated, use `link!!(varinfo, sampler, model)` instead.",
1228-
:link!,
1229-
)
1230-
return _link!(vi, spl)
1231-
end
1232-
function link!(vi::VarInfo, spl::AbstractSampler, spaceval::Val)
1233-
Base.depwarn(
1234-
"`link!(varinfo, sampler, spaceval)` is deprecated, use `link!!(varinfo, sampler, model)` instead.",
1235-
:link!,
1236-
)
1237-
return _link!(vi, spl, spaceval)
1238-
end
12391218
function _link!(vi::UntypedVarInfo, spl::AbstractSampler)
12401219
# TODO: Change to a lazy iterator over `vns`
12411220
vns = _getvns(vi, spl)
@@ -1313,29 +1292,6 @@ function maybe_invlink_before_eval!!(vi::VarInfo, context::AbstractContext, mode
13131292
return maybe_invlink_before_eval!!(t, vi, context, model)
13141293
end
13151294

1316-
"""
1317-
invlink!(vi::VarInfo, spl::AbstractSampler)
1318-
1319-
Transform the values of the random variables sampled by `spl` in `vi` from the
1320-
Euclidean space back to the support of their distributions and sets their corresponding
1321-
`"trans"` flag values to `false`.
1322-
"""
1323-
function invlink!(vi::VarInfo, spl::AbstractSampler)
1324-
Base.depwarn(
1325-
"`invlink!(varinfo, sampler)` is deprecated, use `invlink!!(varinfo, sampler, model)` instead.",
1326-
:invlink!,
1327-
)
1328-
return _invlink!(vi, spl)
1329-
end
1330-
1331-
function invlink!(vi::VarInfo, spl::AbstractSampler, spaceval::Val)
1332-
Base.depwarn(
1333-
"`invlink!(varinfo, sampler, spaceval)` is deprecated, use `invlink!!(varinfo, sampler, model)` instead.",
1334-
:invlink!,
1335-
)
1336-
return _invlink!(vi, spl, spaceval)
1337-
end
1338-
13391295
function _invlink!(vi::UntypedVarInfo, spl::AbstractSampler)
13401296
vns = _getvns(vi, spl)
13411297
if istrans(vi, vns[1])

0 commit comments

Comments
 (0)