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 unused class_dir and file_dir attributes from generators #1304

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Mar 2, 2025

These generator methods are either not defined, or return a fixed nil value. Therefore, we can remove them and simplify some downstream logics accordingly.

st0012 added 3 commits March 2, 2025 21:52
In all generators it only returns nil.
Similar to the class_dir attribute, the file_dir attribute never returns
anything but nil.
Since their prefix argument is always nil, we can stop passing it
and simplify the methods accordingly.
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@st0012 st0012 merged commit 694987b into master Mar 3, 2025
52 checks passed
@st0012 st0012 deleted the remove-unused-class-and-file-dir-attributes branch March 3, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants