@@ -239,26 +239,6 @@ function check_index_map(idxmap, sym)
239
239
nothing
240
240
end
241
241
end
242
-
243
- function ParameterIndex (ic:: IndexCache , p, sub_idx = ())
244
- p = unwrap (p)
245
- return if haskey (ic. tunable_idx, p)
246
- ParameterIndex (SciMLStructures. Tunable (), (ic. tunable_idx[p]. .. , sub_idx... ))
247
- elseif haskey (ic. discrete_idx, p)
248
- ParameterIndex (SciMLStructures. Discrete (), (ic. discrete_idx[p]. .. , sub_idx... ))
249
- elseif haskey (ic. constant_idx, p)
250
- ParameterIndex (SciMLStructures. Constants (), (ic. constant_idx[p]. .. , sub_idx... ))
251
- elseif haskey (ic. dependent_idx, p)
252
- ParameterIndex (DEPENDENT_PORTION, (ic. dependent_idx[p]. .. , sub_idx... ))
253
- elseif haskey (ic. nonnumeric_idx, p)
254
- ParameterIndex (NONNUMERIC_PORTION, (ic. nonnumeric_idx[p]. .. , sub_idx... ))
255
- elseif iscall (p) && operation (p) === getindex
256
- _p, sub_idx... = arguments (p)
257
- ParameterIndex (ic, _p, sub_idx)
258
- else
259
- nothing
260
- end
261
- end
262
242
263
243
function discrete_linear_index (ic:: IndexCache , idx:: ParameterIndex )
264
244
idx. portion isa SciMLStructures. Discrete || error (" Discrete variable index expected" )
0 commit comments