Skip to content

chore: remove dead code (#1719)#3186

Open
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-1719-remove-dead-code
Open

chore: remove dead code (#1719)#3186
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-1719-remove-dead-code

Conversation

@ivanauth

Copy link
Copy Markdown
Contributor

Removes four unused internal symbols flagged by deadcode. Keeps test-only and pkg/ symbols (incl. DebugAnalyzeBeforeStatistics, needed by the datastore StatsTest).

Part of #1719.

@ivanauth ivanauth requested a review from a team as a code owner June 18, 2026 17:26
@github-actions github-actions Bot added the area/datastore Affects the storage system label Jun 18, 2026
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ivanauth ivanauth force-pushed the fix/issue-1719-remove-dead-code branch from e72f54b to f600cb0 Compare June 23, 2026 17:21
Remove four genuinely-unused symbols flagged by `deadcode`, all under
internal/ (no external-API impact) and unused by tests:

- common.CancelationContextHandler (cancelation.go, deleted)
- common.ConnectWithInstrumentation (superseded by ...AndTimeout)
- logging.Log()
- shared.NewMaxDepthExceededError (a duplicate; the used one lives in
  internal/dispatch)

Scope is intentionally conservative. NOT removed, despite being flagged:
- DebugAnalyzeBeforeStatistics — test-only, but required: the datastore
  StatsTest relies on it to force ANALYZE (the PG harness runs
  autovacuum=off, so EstimatedRelationshipCount is 0 without it).
- pkg/ exported symbols — removing these needs a deprecation cycle.
- AsValidationError — a deadcode false positive; used by pkg/schemautil.
@ivanauth ivanauth force-pushed the fix/issue-1719-remove-dead-code branch from eabde15 to c6731fe Compare June 29, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/datastore Affects the storage system Skip-Changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant