Unused reduce_seeds in internetarchive/openlibrary
Question
Is the reduce_seeds function in openlibrary/core/lists/engine.py currently used within this repository, or is it intended for use in an external context?
Additional context
While exploring the codebase, I noticed that reduce_seeds does not appear to be referenced anywhere in this repository.
However, I found that a similar function is used in the openlibrary/openlibrary repo as part of a processing flow.
I wanted to confirm whether:
- this function is expected to be used externally (e.g., scripts, pipelines), or
- it is currently unused and could be considered for cleanup/refactor.
Resolution Details (for maintainers)
Issue resolution criteria
Clarify whether reduce_seeds is actively used. If unused, confirm whether it should be removed or documented.
Stakeholders
@Adeelp1
@Adeelp1 Can i work on this issue..?
I'm working on this
Thanks for your interest!
This issue is mainly to clarify whether reduce_seeds is actually used or meant for some external purpose, not really a bug or something to fix right now.
Once a maintainer confirms, there might be a follow-up task (like cleanup or docs), and that would be a good thing to work on 👍
Seems unused, low priority, @Adeelp1 feel free to remove.
Thanks! I’ll work on this.
While working on this, I noticed that the SubjectProcessor class is only used within reduce_seeds().
Since reduce_seeds is being removed, SubjectProcessor would also become unused.
Should I remove the SubjectProcessor class as well, or keep it for now?