Skip to content

Remove unreachable code#157

Merged
ChrisRackauckas merged 4 commits into
masterfrom
sy/sol_interface_logic
Jul 12, 2021
Merged

Remove unreachable code#157
ChrisRackauckas merged 4 commits into
masterfrom
sy/sol_interface_logic

Conversation

@sharanry

Copy link
Copy Markdown
Contributor

@sharanry sharanry requested a review from ChrisRackauckas July 12, 2021 11:25
Comment thread src/vector_of_array.jl

if i === nothing
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
A.t

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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.

Comment thread src/vector_of_array.jl Outdated

if i === nothing
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
if i == nothing

Copy link
Copy Markdown
Member

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 ==?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YingboMa YingboMa left a comment

Copy link
Copy Markdown
Member

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?

@sharanry

Copy link
Copy Markdown
Contributor Author

Do you need =='s generic methods?

Are you referring to the same ==/=== issue?

@ChrisRackauckas ChrisRackauckas merged commit 4a5d9c6 into master Jul 12, 2021
@ChrisRackauckas ChrisRackauckas deleted the sy/sol_interface_logic branch July 12, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants