From b7fbb5dfd14b2eed814f66b181c202d3f140496c Mon Sep 17 00:00:00 2001 From: Tor Erlend Fjelde Date: Fri, 11 Nov 2022 17:19:33 +0000 Subject: [PATCH] Drop unnecessary `depwarn` + fix Turing tests (#433) * drop unnecessary depwarn from _link! * bump patch version --- Project.toml | 2 +- src/varinfo.jl | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 5a56dc2d7..1e9c7723e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.21.2" +version = "0.21.3" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001" diff --git a/src/varinfo.jl b/src/varinfo.jl index f65d59cf8..9b57944e4 100644 --- a/src/varinfo.jl +++ b/src/varinfo.jl @@ -759,10 +759,6 @@ function _link!(vi::UntypedVarInfo, spl::Sampler) end end function _link!(vi::TypedVarInfo, spl::AbstractSampler) - Base.depwarn( - "`link!(varinfo, sampler)` is deprecated, use `link!!(varinfo, sampler, model)` instead.", - :link!, - ) return _link!(vi, spl, Val(getspace(spl))) end function _link!(vi::TypedVarInfo, spl::AbstractSampler, spaceval::Val)