Skip to content

Remove dead code identified by Skylos#3408

Open
duriantaco wants to merge 2 commits intospotify:masterfrom
duriantaco:remove-dead-code
Open

Remove dead code identified by Skylos#3408
duriantaco wants to merge 2 commits intospotify:masterfrom
duriantaco:remove-dead-code

Conversation

@duriantaco
Copy link

Hi Luigi Team,

Description:
Remove dead code identified by Skylos static analysis:

  1. scheduler.py: Replace unused variables (varkw, kwonlyargs, kwonlydefaults, ann) from inspect.getfullargspec() with _ placeholders
  2. process.py: Remove unused private function _server_already_running (defined but never called)
  3. db_task_history.py: Remove unused class constant CURRENT_SOURCE_VERSION (defined but never referenced)
  4. format.py: Remove unused method OutputPipeProcessWrapper.writeLine (defined but never called)

Motivation and Context:
Reduce dead code to improve maintainability. I use Luigi and I think it's really well maintained. Just wanted to do my part to clean things up a little bit. Each finding was identified using Skylos (https://github.com/duriantaco/skylos) static analysis with LLM-verified dead code detection, and independently verified by searching the entire codebase for references. No behavioral changes.

Have you tested this? If so, how?
Each removal was verified by searching the entire codebase (including tests, docs, and examples) for any references. No usages were found for any of the removed code.

Thanks!

@duriantaco duriantaco requested review from a team and dlstadther as code owners March 15, 2026 00:57
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.

1 participant