Skip to content

Commit

Permalink
Drop unnecessary depwarn + fix Turing tests (#433)
Browse files Browse the repository at this point in the history
This PR fixes the performance regressions seen for `Emcee` in TuringLang/Turing.jl#1900.

@yebai @devmotion This should be an easy merge.
  • Loading branch information
torfjelde committed Nov 11, 2022
1 parent b2ad13c commit f9fe8d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 0 additions & 4 deletions src/varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9fe8d1

Please sign in to comment.