Skip to content

PY: deprecate a bunch of unused code #10317

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 4 commits into from
Sep 12, 2022
Merged

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Sep 6, 2022

I'm looking through some of the results of this yet-to-be-merged QL-for-QL query: #8454

I know the Python teams wants to deprecate the points-to code, so I tried to see if I could deprecate some unused code in Python.

No query/test depend on any of the code I've deprecated.

There was some more code I initially tried to deprecate. However, it was being used in internal queries (that QL-for-QL can't see).

@github-actions github-actions bot added the Python label Sep 6, 2022
@@ -347,7 +351,9 @@
* Holds if `bit` is a binary expression node with a bitwise operator.
* Helper for `this_binary_expr_points_to`.
*/
predicate bitwise_expression_node(BinaryExprNode bit, ControlFlowNode left, ControlFlowNode right) {
deprecated predicate bitwise_expression_node(

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter

The QLDoc has no documentation for left, or right, but the QLDoc mentions this_binary_expr_points_to
@erik-krogh erik-krogh marked this pull request as ready for review September 7, 2022 10:28
@erik-krogh erik-krogh requested a review from a team as a code owner September 7, 2022 10:28
@calumgrant calumgrant requested a review from tausbn September 12, 2022 09:17
Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

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

Changes look good to me. I'm debating whether this needs a change note or not. Some of these predicates are in principle visible externally, though I wouldn't expect anyone to actually depend on them.

@erik-krogh
Copy link
Contributor Author

Changes look good to me. I'm debating whether this needs a change note or not. Some of these predicates are in principle visible externally, though I wouldn't expect anyone to actually depend on them.

I've added a change-note.

Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

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

Nice! Thank you! ❤️

@erik-krogh erik-krogh merged commit bb3753a into github:main Sep 12, 2022
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.

2 participants