Repository navigation
Remove dead code - #412
Merged
Merged
Remove dead code#412
Conversation
christophfroehlich
force-pushed
the
cleanup/dead-code
branch
from
November 15, 2026 06:53
6c86d4d to
9fb11f0
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…functions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
christophfroehlich
force-pushed
the
cleanup/dead-code
branch
from
November 15, 2026 07:23
9fb11f0 to
b97c2a2
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the dead-code and CMake cleanup.
No open issues 🎉
What changed in this PR
Removes dead and redundant code from the parameter generator and its CMake integration, with no intended changes to generated output or user-facing behavior.
Changes:
- Removes unused imports and reuses existing Python conversion functions for fixed-size types.
- Simplifies parser and validator code and corrects abstract-method exceptions to
NotImplementedError. - Removes unused CMake variable references and C++ include settings from the Python-module target.
| File | Description |
|---|---|
generate_parameter_library/cmake/generate_parameter_library.cmake |
Removes unused target inputs, dependencies, and Python-target include settings. |
generate_parameter_library_py/generate_parameter_library_py/python_validators.py |
Removes an unused local variable. |
generate_parameter_library_py/generate_parameter_library_py/python_conversions.py |
Removes unused imports and duplicate fixed-size conversion methods. |
generate_parameter_library_py/generate_parameter_library_py/parse_yaml.py |
Removes redundant assignment and branching; corrects abstract-method exceptions. |
generate_parameter_library_py/generate_parameter_library_py/cpp_conversions.py |
Removes unused imports. |
Review effort: Balanced
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.
Removes code that can never run or has no effect, 46 lines net. Nothing changes for users. The generated C++, Python, markdown and rst are identical.
One commit per topic:
*_fixed_to_strfunctions were copies of the non-fixed ones, so the table now points at those.bool_array_fixedstays; Support bool_array_fixed_XX parameters #414 implements it.or language == 'markdown'branch inGenerateCode.__init__was unreachable.self.namewas set twice.raise NotImplemented()would itself fail withTypeError, so it is nowNotImplementedError.not_emptyis removed.${LOCAL_PARAM_HEADER_FILE}, and${VALIDATE_HEADER}ingenerate_parameter_module(), are never set.generate_parameter_module()set C++ include directories on a target that only holds a Python module.I built and tested all four example packages, checked that the module of
example_cmake_pythonis still installed and importable, and compared the generated output for every definition in the repository before and after.No
backport-humblelabel, since this does not fix anything.🤖 Generated with Claude Code