@@ -169,51 +169,6 @@ See also: [`getindex(vi::AbstractVarInfo, vn::VarName, dist::Distribution)`](@re
169
169
"""
170
170
function getindex_internal end
171
171
172
- """
173
- push!!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution)
174
-
175
- Push a new random variable `vn` with a sampled value `r` from a distribution `dist` to
176
- the `VarInfo` `vi`, mutating if it makes sense.
177
- """
178
- function BangBang. push!! (vi:: AbstractVarInfo , vn:: VarName , r, dist:: Distribution )
179
- return BangBang. push!! (vi, vn, r, dist, Set {Selector} ([]))
180
- end
181
-
182
- """
183
- push!!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, spl::AbstractSampler)
184
-
185
- Push a new random variable `vn` with a sampled value `r` sampled with a sampler `spl`
186
- from a distribution `dist` to `VarInfo` `vi`, if it makes sense.
187
-
188
- The sampler is passed here to invalidate its cache where defined.
189
-
190
- $(LEGACY_WARNING)
191
- """
192
- function BangBang. push!! (
193
- vi:: AbstractVarInfo , vn:: VarName , r, dist:: Distribution , spl:: Sampler
194
- )
195
- return BangBang. push!! (vi, vn, r, dist, spl. selector)
196
- end
197
- function BangBang. push!! (
198
- vi:: AbstractVarInfo , vn:: VarName , r, dist:: Distribution , spl:: AbstractSampler
199
- )
200
- return BangBang. push!! (vi, vn, r, dist)
201
- end
202
-
203
- """
204
- push!!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, gid::Selector)
205
-
206
- Push a new random variable `vn` with a sampled value `r` sampled with a sampler of
207
- selector `gid` from a distribution `dist` to `VarInfo` `vi`.
208
-
209
- $(LEGACY_WARNING)
210
- """
211
- function BangBang. push!! (
212
- vi:: AbstractVarInfo , vn:: VarName , r, dist:: Distribution , gid:: Selector
213
- )
214
- return BangBang. push!! (vi, vn, r, dist, Set ([gid]))
215
- end
216
-
217
172
@doc """
218
173
empty!!(vi::AbstractVarInfo)
219
174
768
723
# Legacy code that is currently overloaded for the sake of simplicity.
769
724
# TODO : Remove when possible.
770
725
increment_num_produce! (:: AbstractVarInfo ) = nothing
771
- setgid! (vi:: AbstractVarInfo , gid:: Selector , vn:: VarName ) = nothing
772
726
773
727
"""
774
728
from_internal_transform(varinfo::AbstractVarInfo, vn::VarName[, dist])
0 commit comments