Skip to content

Commit 742146e

Browse files
refactor: remove zero_var
1 parent a8d59d6 commit 742146e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/systems/problem_utils.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -247,25 +247,6 @@ function recursive_unwrap(x::AbstractDict)
247247
return anydict(unwrap(k) => recursive_unwrap(v) for (k, v) in x)
248248
end
249249

250-
"""
251-
$(TYPEDSIGNATURES)
252-
253-
Return the appropriate zero value for a symbolic variable representing a number or array of
254-
numbers. Sized array symbolics return a zero-filled array of matching size. Unsized array
255-
symbolics return an empty array of the appropriate `eltype`.
256-
"""
257-
function zero_var(x::Symbolic{T}) where {V <: Number, T <: Union{V, AbstractArray{V}}}
258-
if Symbolics.isarraysymbolic(x)
259-
if is_sized_array_symbolic(x)
260-
return zeros(eltype(T), size(x))
261-
else
262-
return T[]
263-
end
264-
else
265-
return zero(T)
266-
end
267-
end
268-
269250
"""
270251
$(TYPEDSIGNATURES)
271252

0 commit comments

Comments
 (0)