Skip to content

Remove the dead execute_parallel and execute_sequential methods - #271

Open
Nitjsefnie wants to merge 2 commits into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/52-remove-dead-executor-methods
Open

Remove the dead execute_parallel and execute_sequential methods#271
Nitjsefnie wants to merge 2 commits into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/52-remove-dead-executor-methods

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Summary

Removes Executor.execute_parallel and Executor.execute_sequential, which nothing in the package calls, along with the two unit tests that were their only callers.

Related Issues and Pull Requests

Fixes #52

Changes

Chose deletion over the TODO marker your issue also offered. The precedent is this repo's own: #75 and #77 were both dead-code findings resolved by deletion and merged. There's no TODO-marker precedent to follow, the methods appear in no docs, examples, changelog or release notes, and the package is pre-1.0 with no deprecation convention. Happy to switch to markers if you'd rather keep them as an intended API.

Testing

One correction to the issue worth stating plainly: "never called anywhere" isn't quite right — they had two dedicated unit tests. No production caller exists, which is what makes deletion correct, but tests/unit/test_core/test_engine.py called them at four points, so those tests had to go with the methods or the suite would AttributeError. That's why the unit count drops by exactly two.

Verified as an enumeration rather than a spot check. Post-change, grep -rn "execute_parallel\|execute_sequential" over the whole tree — source, tests, docs, examples, scripts, config — returns exactly one hit: the CHANGELOG entry itself. A hasattr check on the class confirms both are gone.

gate result
pytest tests/unit 1013 passed, 4 skipped (baseline 1015 — the two deleted tests)
full suite w/ coverage 1067 passed, 4 skipped (baseline 1069)
coverage 81.18%, threshold 75. executor.py goes 55 stmts/85% → 33 stmts/100%
mkdocs build --strict pass
python -m build + twine check pass

The soft gates add no new findings — checked at finding level against a base worktree rather than by comparing totals: ruff 224 vs 228 at base, format clean, mypy unchanged, integration 54 passed.

Footer

Generated by Claude Opus 5 (review), Kimi K3 (brief, implementation, verification)

Nitjsefnie and others added 2 commits August 2, 2026 01:11
Neither method has any production caller; the pipeline uses
Executor.gather(). Their only in-tree references were two dedicated
unit tests, which are removed alongside them. Also drops the now-unused
Coroutine import. Closes OpenAgentHQ#52.

Co-Authored-By: Kimi K3 <noreply@kimi.com>
Co-Authored-By: Kimi K3 <noreply@kimi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

execute_parallel and execute_sequential are dead code in executor.py

1 participant