Skip to content

chore: remove dead code (#1719) - #3186

Merged
miparnisari merged 1 commit into
authzed:mainfrom
ivanauth:fix/issue-1719-remove-dead-code
Aug 8, 2026
Merged

chore: remove dead code (#1719)#3186
miparnisari merged 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 2 times, most recently from eabde15 to c6731fe Compare June 29, 2026 19:04
@ivanauth
ivanauth force-pushed the fix/issue-1719-remove-dead-code branch from c6731fe to eff2049 Compare August 6, 2026 19:36
@miparnisari
miparnisari force-pushed the fix/issue-1719-remove-dead-code branch from eff2049 to 2df1644 Compare August 7, 2026 16:00
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.
@miparnisari
miparnisari force-pushed the fix/issue-1719-remove-dead-code branch from 2df1644 to 897d316 Compare August 7, 2026 20:18
@miparnisari
miparnisari enabled auto-merge (squash) August 7, 2026 20:18
@miparnisari
miparnisari merged commit 62bd7ef into authzed:main Aug 8, 2026
44 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/datastore Affects the storage system Skip-Changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants