Skip to content

Remove unused php_stream_tell() result #10365

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

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

Note: I found this using a static analysis pass that looks for unused results in code. I manually verified this.

@iluuu1994
Copy link
Member

Thank you! This was introduced in c283f53. @cmb69 Just to verify, the code wasn't meant to do anything else?

@iluuu1994
Copy link
Member

Oh, actually, the line was just moved. So it was there even before.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Indeed, php_stream_tell() has no side effects whatsoever, so it can be removed.

It was assigned to an unused variable till 323b273, and apparently from when that call had been introduced.

I've just retriggered the failed GH action (Travis failure is unrelated anyway). Assuming that passes, this looks good to me.

Thank you!

@cmb69 cmb69 closed this in fd6c235 Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants