Skip to content

Commit cc5e581

Browse files
authored
Remove VarInfo(VarInfo, params) (#870)
1 parent fc32398 commit cc5e581

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

HISTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
**Breaking changes**
66

7+
### VarInfo constructor
8+
9+
`VarInfo(vi::VarInfo, values)` has been removed. You can replace this directly with `unflatten(vi, values)` instead.
10+
711
### VarName prefixing behaviour
812

913
The way in which VarNames in submodels are prefixed has been changed.

src/varinfo.jl

-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ const TypedVarInfo = VarInfo{<:NamedTuple}
100100
const VarInfoOrThreadSafeVarInfo{Tmeta} = Union{
101101
VarInfo{Tmeta},ThreadSafeVarInfo{<:VarInfo{Tmeta}}
102102
}
103-
# TODO: Remove this
104-
@deprecate VarInfo(vi::VarInfo, x::AbstractVector) unflatten(vi, x)
105103

106104
# NOTE: This is kind of weird, but it effectively preserves the "old"
107105
# behavior where we're allowed to call `link!` on the same `VarInfo`

0 commit comments

Comments
 (0)