-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove dead code #7587
chore: remove dead code #7587
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes unused code and dependencies from the apps/site folder to clean up the codebase.
- Removal of dead type definitions in og.ts and frontmatter.ts
- Removal of unused helper functions and constants in next.helpers.mjs and next.constants.mjs
- Removal of dead components and mocks, including withRouterSelect.tsx, ActiveLink.tsx, and mocks files
- Update to dependency configuration in .github/dependabot.yml
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
apps/site/types/og.ts | Removed unused SVG type definition |
apps/site/types/frontmatter.ts | Removed legacy frontmatter interfaces |
apps/site/next.helpers.mjs | Removed unused helper functions |
apps/site/next.constants.mjs | Removed unused regex constant |
apps/site/components/withRouterSelect.tsx | Removed dead component code |
apps/site/components/mocks/next-image.mjs | Removed unused mock for next-image |
apps/site/components/mocks/client-context.mjs | Removed unused client context mock |
apps/site/components/Common/ActiveLink.tsx | Removed unused component code |
.github/dependabot.yml | Updated dependency patterns by removing one |
Files not reviewed (1)
- apps/site/package.json: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. It would be nice if you commit your knip config.
|
Oh ok, lgtm then |
Lighthouse Results
|
This PR removes some unused code / dependencies in the
apps/site
folder.(I used
knip
to find a large list, and went through to see what was actually unused).