Skip to content

Remove dead code in ClassFileParser #5066

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

Merged
merged 1 commit into from
Sep 3, 2018
Merged

Conversation

abeln
Copy link
Contributor

@abeln abeln commented Aug 31, 2018

It looks like the code was added about 6 years ago, and hasn't been
changed recently: https://github.com/lampepfl/dotty/blame/master/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala#L1111

So it really seems like dead code. Tested by compilling with the code
removed.

It looks like the code was added about 6 years ago, and hasn't been
changed recently: https://github.com/lampepfl/dotty/blame/master/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala#L1111

So it really seems like dead code. Tested by compilling with the code
removed.
Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @abeln!

@allanrenucci allanrenucci merged commit 81cd4de into scala:master Sep 3, 2018
@abeln abeln deleted the dead-code branch September 3, 2018 16:32
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.

2 participants