Skip to content

Commit d552a76

Browse files
committed
removed: deprecated preparestate! method
The method is associated to `SimModel` objects. This is not a normal use of the function so it should not affect anyone.
1 parent 4ab5d3b commit d552a76

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

src/sim_model.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,6 @@ function preparestate!(model::SimModel)
220220
return x
221221
end
222222

223-
function preparestate!(model::SimModel, ::Any , ::Any=model.buffer.empty)
224-
Base.depwarn(
225-
"The method preparestate!(model::SimModel, u, d=[]) is deprecated. Use "*
226-
" preparestate!(model::SimModel) instead.",
227-
:preparestate!,
228-
)
229-
return preparestate!(model)
230-
end
231-
232223
@doc raw"""
233224
updatestate!(model::SimModel, u, d=[]) -> xnext
234225

test/1_test_sim_model.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ end
113113
@test evaloutput(linmodel1, Float64[]) linmodel1(Float64[]) [50,30]
114114
x = initstate!(linmodel1, [10, 60])
115115
@test evaloutput(linmodel1) [50 + 19.0, 30 + 7.4]
116-
@test preparestate!(linmodel1) x # new method
117-
@test preparestate!(linmodel1, [10, 60]) x # deprecated method
116+
@test preparestate!(linmodel1) x
118117
@test updatestate!(linmodel1, [10, 60]) x
119118
linmodel2 = LinModel(append(tf(1, [1, 0]), tf(2, [10, 1])), 1.0)
120119
x = initstate!(linmodel2, [10, 3])

0 commit comments

Comments
 (0)