(janitor/dead-code): remove unused org KiloClaw query hooks - #6207
Open
kilo-code-bot[bot] wants to merge 1 commit into
Open
kilo-code-bot[bot] wants to merge 1 commit into
kilo-code-bot[bot] wants to merge 1 commit into
Conversation
Delete 13 unreferenced hooks from apps/web/src/hooks/useOrgKiloClaw.ts: useOrgKiloClawConfig, useOrgKiloClawPairing, useOrgRefreshPairing, useOrgKiloClawDevicePairing, useOrgRefreshDevicePairing, useOrgGatewayReady, useOrgControllerVersion, useOrgMorningBriefingStatus, useOrgKiloClawServiceDegraded, useOrgKiloClawLatestVersion, useOrgKiloClawAvailableVersions, useOrgFileTree, and useOrgReadFile. None of these symbols appear anywhere else in the repository, in tests, configuration, or the external Kilo-Org/kilocode consumer.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Deleted-hook removal verified unreferenced: none of the 13 removed symbols appears in any Files Reviewed (1 file)
Verification performed:
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was deleted
13 unreferenced React Query hooks from
apps/web/src/hooks/useOrgKiloClaw.ts:useOrgKiloClawConfiguseOrgKiloClawPairinguseOrgRefreshPairinguseOrgKiloClawDevicePairinguseOrgRefreshDevicePairinguseOrgGatewayReadyuseOrgControllerVersionuseOrgMorningBriefingStatususeOrgKiloClawServiceDegradeduseOrgKiloClawLatestVersionuseOrgKiloClawAvailableVersionsuseOrgFileTreeuseOrgReadFileThe file retains its live exports (
useOrgKiloClawStatus,useOrgKiloClawNavState,useOrgKiloClawGatewayStatus,useOrgKiloClawMyPin,useOrgKiloClawMutations), and no import becomes unused.Evidence of unreachability
Each deleted symbol appears exactly once in the entire repository — its own
export functiondeclaration — and zero times in the externalKilo-Org/kilocodeconsumer. Confirmed via repository-wide word-boundary search over.ts/.tsx/.md/.jsonand a targeted token-occurrence count. The five retained hooks are the only ones imported by any component (verified againstapps/web/src/app/(app)/claw/**andorganizations/**).Dynamic and configured entry points checked
page/route/layoutfile).apps/webbarrel re-exports, tests, scripts, CI, or dev tooling.apps/web.Contract and compatibility considerations
apps/webis a private application, not a published package; these hooks are not part of any SDK, CLI, or public API surface.@kilocode/*packages and the tRPC router methods these hooks called are untouched; only the unused wrapper hooks were removed.Validation
oxfmt apps/web/src/hooks/useOrgKiloClaw.ts— cleanoxlint --config .oxlintrc.json apps/web/src/hooks/useOrgKiloClaw.ts— 0 warnings, 0 errorstsgo --noEmit -p apps/web/tsconfig.json— passed