Skip to content
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

Remove dead code from framer #2094

Closed
wants to merge 2 commits into from
Closed

Remove dead code from framer #2094

wants to merge 2 commits into from

Conversation

alexrudd2
Copy link
Collaborator

get_expected_response_length was totally removed in 9cf0724#diff-126482fdc00ef924006c76c322c03c809c8b598b66f0af83ab9f5aade84a6a11L314-L323 and therefore this entire branch is useless.



@janiversen
Copy link
Collaborator

Please stop changing in framers and message (in message type changes etc are ok). At least these big changes that ruins my ongoing work.

You are changing work in progress, without really changing it...e.g. the to_do files are to remember test cases.

IndexError # response length indeterminate with available bytes
):
expected_response_length = (
self.client.framer.get_expected_response_length(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually I think this needs to be changed to calling these 2 methods:

pdu_class = self.decoder.lookupPduClass(func_code)
         return pdu_class.calculateRtuFrameSize(data)

I am quite sure I should not have removed it totally.

@alexrudd2
Copy link
Collaborator Author

See #2096.

We are very close to "throwing the switch" for more mypy checks. Merge your changes and I'll resolve the conflicts. I hope it will make the refactors more robust :)

@janiversen
Copy link
Collaborator

Done (sadly enough without a PR, due to a lapse in mind).

@alexrudd2
Copy link
Collaborator Author

Superseded by 504af27

@alexrudd2 alexrudd2 closed this Mar 7, 2024
@alexrudd2 alexrudd2 deleted the framer-dead-code branch March 7, 2024 19:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants