fix(agent): remove unused get_variable_names function by keli-wen · Pull Request #1784 · huggingface/smolagents (original) (raw)
Description
This PR removes the unused get_variable_names function from src/smolagents/agents.py that was introduced in commit 8ba036b.
Motivation
The get_variable_names function is dead code that:
- Has no callers anywhere in the codebase
- Has no test coverage
- Is not referenced in documentation
- Contributes to unnecessary code bloat
Removing unused code improves:
- Code maintainability
- Codebase clarity
- Reduces potential confusion for developers
Changes Made
- Removed the
get_variable_namesfunction (lines 101-103) andimport refromsrc/smolagents/agents.py
Note: This function was originally introduced in commit 8ba036b but never actually used in the codebase.