chore: clean up and remove dead code#195
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Greptile SummaryThis PR removes genuinely dead code, resolves a real circular dependency in Key changes:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Before["Before (circular dependency)"]
B_constants["utils/constants.ts\nimport Canon, BookUsfm"] -->|type import| B_book["schemas/book.ts\nexport Canon, BookUsfm\nimport BOOK_IDS"]
B_book -->|import| B_constants
end
subgraph After["After (resolved)"]
A_constants["utils/constants.ts\nexport CANON_IDS\nlocal: CanonId, KnownBookUsfm"] -->|export CANON_IDS, BOOK_IDS| A_book["schemas/book.ts\nimport CANON_IDS, BOOK_IDS\nexport CANON, BookUsfmSchema"]
A_types["types/index.ts\ninline: ApiConfig\nAuthenticationState\nHighlightColor"] -->|re-exports| A_index["core/src/index.ts\nexport * from types\nexport * from utils/constants"]
A_book -->|export via schemas/index| A_index
end
style Before fill:#ffeeee,stroke:#cc0000
style After fill:#eeffee,stroke:#009900
Last reviewed commit: 8664273 |
cameronapak
left a comment
There was a problem hiding this comment.
LGTM!
(& no changeset needed, so you're good to merge)
Summary
This PR cleans up dead code and analyzer findings across the monorepo, fixes a real circular dependency in
core, and alignsrev-depwith the SDK’s intended public API surface.What Changed
Core
schemas/book.tsandutils/constants.tspackages/core/src/types/index.tsHooks
YouVersionAuthProviderPropssince it is not part of the package surfaceUI
SeparatorandTextareainto the public UI barrel because they are intended SDK exportsRootPropsforBibleChapterPickeras a supported public typeAnalyzer / Config
.rev-dep.config.jsoncto better reflect SDK realitiesRootPropsWhy
The repo had a mix of:
This change separates those cases so we can remove genuinely unused code while preserving intentional SDK exports and keeping the analysis tooling trustworthy.
Before / After