Skip to content

Remove dead code: byte_extract_(big|little)_endian #2494

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
Nov 7, 2018

Conversation

allredj
Copy link
Contributor

@allredj allredj commented Jun 29, 2018

Constructors for byte_extract_big_endian and byte_extract_little_endian are not used anywhere. I suggest removing them, because their presence is a bit confusing (endianness is actually set using byte_extract_id() and byte_update_id()).

Some other methods become redundant.

Any thoughts?

Copy link
Contributor Author

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Passed Diffblue compatibility checks (cbmc commit: 869faf5).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/77689273

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

I'm always in favour of removing code :-) I think those once seemed like a good idea, but really if by now we don't use them then probably we never will. I'd suggest @kroening for final approval, though.

@tautschnig tautschnig assigned kroening and unassigned allredj Jul 2, 2018
@allredj allredj added cleanup and removed question labels Jul 23, 2018
@allredj allredj force-pushed the remove-unused-byte-extract branch from 869faf5 to 9b2e585 Compare October 24, 2018 08:01
@allredj allredj requested a review from pkesseli as a code owner October 24, 2018 08:01
Constructors for byte_extract_big_endian and byte_extract_little_endian
are not used.
@allredj allredj force-pushed the remove-unused-byte-extract branch from 9b2e585 to b18b031 Compare October 24, 2018 09:01
Copy link
Contributor Author

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Passed Diffblue compatibility checks (cbmc commit: b18b031).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88985499

@tautschnig tautschnig merged commit e29fd12 into develop Nov 7, 2018
@tautschnig tautschnig deleted the remove-unused-byte-extract branch November 7, 2018 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants