Skip to content

Commit 968c879

Browse files
authored
Remove dead code (#956)
* Remove dead code * More dead code * no need that too * bump patch
1 parent 3e54c2d commit 968c879

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# DynamicPPL Changelog
22

3+
## 0.36.12
4+
5+
Removed several unexported functions.
6+
The only notable one is `DynamicPPL.alg_str`, which was used in old versions of AdvancedVI and the Turing test suite.
7+
38
## 0.36.11
49

510
Make `ThreadSafeVarInfo` hold a total of `Threads.nthreads() * 2` logp values, instead of just `Threads.nthreads()`.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.36.11"
3+
version = "0.36.12"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/context_implementations.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
using Distributions:
2-
UnivariateDistribution, MultivariateDistribution, MatrixDistribution, Distribution
3-
4-
const AMBIGUITY_MSG =
5-
"Ambiguous `LHS .~ RHS` or `@. LHS ~ RHS` syntax. The broadcasting " *
6-
"can either be column-wise following the convention of Distributions.jl or " *
7-
"element-wise following Julia's general broadcasting semantics. Please make sure " *
8-
"that the element type of `LHS` is not a supertype of the support type of " *
9-
"`AbstractVector` to eliminate ambiguity."
10-
11-
alg_str(spl::Sampler) = string(nameof(typeof(spl.alg)))
12-
13-
# utility funcs for querying sampler information
14-
require_gradient(spl::Sampler) = false
15-
require_particles(spl::Sampler) = false
16-
171
# Allows samplers, etc. to hook into the final logp accumulation in the tilde-pipeline.
182
function acclogp_assume!!(context::AbstractContext, vi::AbstractVarInfo, logp)
193
return acclogp_assume!!(NodeTrait(acclogp_assume!!, context), context, vi, logp)

0 commit comments

Comments
 (0)