Skip to content

chore: remove dead code #7587

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

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ updates:
next-js:
patterns:
- 'next'
- 'eslint-config-next'
- '@next/eslint-plugin-next'
- 'next-*'
- '@vercel/*'
Expand Down
14 changes: 0 additions & 14 deletions apps/site/components/Common/ActiveLink.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions apps/site/components/__mocks__/client-context.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions apps/site/components/__mocks__/next-image.mjs

This file was deleted.

31 changes: 0 additions & 31 deletions apps/site/components/withRouterSelect.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions apps/site/next.constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ export const NEXT_DATA_URL = process.env.NEXT_PUBLIC_DATA_URL
? `${BASE_URL}${BASE_PATH}/en/next-data/`
: `http://localhost:${process.env.PORT ?? 3000}/en/next-data/`;

/**
* This ReGeX is used to remove the `index.md(x)` suffix of a name and to remove
* the `.md(x)` extensions of a filename.
*
* This RegEx is used to transform the file system pathnames into acceptable
* Route Segments for Next.js Dynamic Routes on `pages/[...path].tsx`
*/
export const MD_EXTENSION_REGEX = /((\/)?(index))?\.mdx?$/i;

/**
* This is the default type of blog post type that we use for OG Meta Tags
*/
Expand Down
16 changes: 0 additions & 16 deletions apps/site/next.helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@ import { glob } from 'glob';
* @type {Map<string, Promise<string>>} */
const globCacheByPath = new Map();

export const getMatchingRoutes = (route = '', matches = []) =>
matches.some(match => route === match);

/**
* This method is responsible for reading all immediate subdirectories of a directory
*
* @param {string} root the root directory to search from
* @param {string} cwd the current working directory
* @returns {Promise<Array<string>>} a promise containing an array of directories
*/
export const getDirectories = async (root, cwd) => {
return glob('*', { root, cwd, withFileTypes: true })
.then(d => d.filter(e => e.isDirectory()))
.then(d => d.map(e => e.name));
};

/**
* This gets the relative path from `import.meta.url`
*
Expand Down
1 change: 0 additions & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@node-core/ui-components": "*",
"@node-core/website-i18n": "*",
"@nodevu/core": "0.3.0",
"@opentelemetry/api": "1.9.0",
"@orama/react-components": "^0.6.4",
"@oramacloud/client": "^2.1.4",
"@radix-ui/react-slot": "^1.1.2",
Expand Down
12 changes: 0 additions & 12 deletions apps/site/types/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,3 @@ export interface LegacyFrontMatter extends Record<string, any> {
labels?: Record<string, string>;
authors?: string;
}

// @TODO: Extra data from Frontmatter should not be a thing in the future
export interface LegacyBlogFrontMatter extends LegacyFrontMatter {
author: string;
date: string;
}

// @TODO: Extra data from Frontmatter should not be a thing in the future
export interface LegacyDownloadsFrontMatter extends LegacyFrontMatter {
downloads: Record<string, string>;
additional: Record<string, string>;
}
3 changes: 0 additions & 3 deletions apps/site/types/og.ts

This file was deleted.

Loading
Loading