Skip to content

Remove unused method and clean up unused imports#690

Closed
duriantaco wants to merge 1 commit into
Point72:mainfrom
duriantaco:remove-dead-code
Closed

Remove unused method and clean up unused imports#690
duriantaco wants to merge 1 commit into
Point72:mainfrom
duriantaco:remove-dead-code

Conversation

@duriantaco

Copy link
Copy Markdown

Summary

  • Remove CspGraphObjectsMemCache.get_object_stats() in csp/impl/mem_cache.py — zero callers anywhere in the codebase
  • Clean up unused imports across 13 test files (sys ×6, os ×2, pytest ×2, time ×1, date ×1, pytz ×1, typing ×1, get_args/get_origin from typing)

14 files changed, 32 lines removed.

Verification

  • Confirmed get_object_stats has zero references via project-wide grep
  • All import removals verified as unused (no references in their respective files)
  • Skipped View._get_row_delta since it may be a parent class override called by the perspective framework

Found with Skylos, a dead code detection tool.

Test plan

  • Existing test suite passes (no behavioral changes, only unused code removed)

🤖 Generated with Claude Code

Remove `CspGraphObjectsMemCache.get_object_stats()` which has zero callers
anywhere in the codebase. Clean up unused imports across 13 test files
(sys, os, pytest, time, date, pytz, typing, get_args, get_origin).

Found with [Skylos](https://github.com/duriantaco/skylos).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: duriantaco <aaronoh2015@gmail.com>
@AdamGlustein

AdamGlustein commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator

If you would like to contribute to the project, please work on a pressing issue. An AI generated PR like this which doesn't provide utility to the library (and also does not follow our lint rules) will not be approved.

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.

2 participants