-
-
Notifications
You must be signed in to change notification settings - Fork 68
Remove unreachable code #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -72,11 +72,7 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym | |||
end | |||
|
|||
if i === nothing | |||
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym | |||
A.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you try the independent variable and see what it does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that case is covered now. Added tests too.
src/vector_of_array.jl
Outdated
@@ -71,8 +71,8 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym | |||
i = sym | |||
end | |||
|
|||
if i === nothing | |||
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym | |||
if i == nothing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not recommended. Why do you need to use ==
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see SciML/SciMLBase.jl#84 (comment) .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need ==
's generic methods?
Are you referring to the same |
SciML/SciMLBase.jl#83