-
Notifications
You must be signed in to change notification settings - Fork 274
Remove unused class_identifier parameter from Java object factory #4506
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 unused class_identifier parameter from Java object factory #4506
Conversation
antlechner
commented
Apr 9, 2019
- Each commit message has a non-empty body, explaining why the change was made.
- n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
- n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
- n/a Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
- n/a My commit message includes data points confirming performance improvements (if claimed).
- n/a My PR is restricted to a single feature or bugfix.
- n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.
This parameter was only "used" in gen_nondet_struct_init, where it was assigned a new value before it was actually used.
Naming this variable only duplicates the information that is already given in the name of the function set_class_identifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat.
set_class_identifier( | ||
to_struct_expr(*initial_object), ns, struct_tag_typet(qualified_clsid)); | ||
to_struct_expr(*initial_object), | ||
ns, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 set_class_identifier
doesn't actually use ns
. So this parameter could probably be removed, however that is probably a change for another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has a call to ns.follow
. I still find it a bit strange that follow
is defined only for namespaces and not for symbol tables, but that would definitely be a change for another (much bigger) PR. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my mistake.
There was a problem hiding this 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: b97b80a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/107679876