chore: remove dead code in crawler.py — CONFIG_PREFIXES_OF_INTEREST and unused top variable#18
Open
bipinhcs11 wants to merge 1 commit into
Open
chore: remove dead code in crawler.py — CONFIG_PREFIXES_OF_INTEREST and unused top variable#18bipinhcs11 wants to merge 1 commit into
bipinhcs11 wants to merge 1 commit into
Conversation
…nd top variable
Two orphaned remnants of an incomplete filtering design:
1. CONFIG_PREFIXES_OF_INTEREST — defined at module level but never
referenced in any code. The docstring of _extract_properties_prefixes
claimed the function filtered against this constant, but it never did.
2. top = key.split(".", 1)[0] in _extract_properties_prefixes — assigned
but never read; would have been used for the filter that was never wired.
Both were noted as follow-ups in the PR #15 and PR #16 review notes.
Zero behaviour change: top was never read, so removing it cannot affect
output. Updated the docstring to describe what the function actually does.
172 tests pass unchanged.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two-line dead-code removal in
tools/skill_generator/crawler.py.Why
These are orphaned remnants from an incomplete filtering design that was noted as a follow-up in the review comments of PRs #15 and #16 but never acted on:
1.
CONFIG_PREFIXES_OF_INTEREST(lines 58–62 before this PR)Defined at module level, never referenced in any code. The docstring of
_extract_properties_prefixesclaimed the function filtered against it — it never did. Confirmed with a full-repogrep: only appears in its own definition and the stale docstring.2.
top = key.split(".", 1)[0]in_extract_properties_prefixesAssigned but never read. Would have been the variable used to drive the filter that was never wired up.
Changes
tools/skill_generator/crawler.pyCONFIG_PREFIXES_OF_INTERESTconstant (6 lines); removetop = …assignment (1 line); update docstring to describe what the function actually doesBehaviour impact
None.
topwas never read, so its removal cannot change any output. The constant was never referenced, so its removal cannot change any behaviour. This is pure dead-code cleanup.Test impact
172 tests pass unchanged. No test referenced
CONFIG_PREFIXES_OF_INTEREST(confirmed by grep).Follow-ups in other open PRs
tests/test_update.py(update.py coverage gap)_detect_java_versionfor<java.version>in pom.xml_apply_linksoverwritingrelated_skillswith stale valueGenerated by Claude Code