Skip to content

Commit cf003a3

Browse files
committed
Remove unreachable code
1 parent 58d89af commit cf003a3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/vector_of_array.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym
7272
end
7373

7474
if i === nothing
75-
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
76-
A.t
77-
else
78-
observed(A,sym,:)
79-
end
75+
observed(A,sym,:)
8076
else
8177
Base.getindex.(A.u, i)
8278
end
@@ -89,11 +85,7 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym
8985
end
9086

9187
if i === nothing
92-
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
93-
A.t[args...]
94-
else
95-
observed(A,sym,args...)
96-
end
88+
observed(A,sym,args...)
9789
else
9890
Base.getindex.(A.u, i, args...)
9991
end

0 commit comments

Comments
 (0)