Skip to content

chore(api): remove unused getPendingInvitations and hasPermission - #400

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-api-remove-unused-getpendinginvitations-and-7a7e88
Open

detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-api-remove-unused-getpendinginvitations-and-7a7e88

Conversation

@detail-app

@detail-app detail-app Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Remove two fully dead exported functions from the company service:

  • getPendingInvitations (company/invitations.ts): no consumers anywhere
    (not via the barrel, company.service.ts re-export, direct submodule
    imports, or tests). The richer listPendingInvitations is the live path
    used by routes/companies/invitations.ts.
  • hasPermission (company/members.ts): no consumers anywhere.
    Permission checks go through canManageMember instead, which is used by
    routes/companies/members.ts.

Both functions were created in the #50 modularization refactor and never
acquired a caller; removing only the barrel re-export would have been an
under-10-line "exports only" change, so the whole functions plus their
barrel entries are removed together.

History

  • Last materially changed July 2026

Dead Code PRs can be configured here.

@detail-app
detail-app Bot requested a review from setkyar September 15, 2026 05:58
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