Skip to content

Commit

Permalink
chore: removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Dec 28, 2024
1 parent 88274cf commit 5154ad7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 106 deletions.
6 changes: 2 additions & 4 deletions apps/site/components/Downloads/DownloadReleasesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { FC } from 'react';

import LinkWithArrow from '@/components/LinkWithArrow';
import getReleaseData from '@/next-data/releaseData';
import { BASE_CHANGELOG_URL } from '@/next.constants.mjs';
import { getNodeApiLink } from '@/util/getNodeApiLink';
import { getNodeJsChangelog } from '@/util/getNodeJsChangelog';

// This is a React Async Server Component
// Note that Hooks cannot be used in a RSC async component
Expand Down Expand Up @@ -43,9 +43,7 @@ const DownloadReleasesTable: FC = async () => {
{t('components.downloadReleasesTable.actions.releases')}
</LinkWithArrow>

<LinkWithArrow
href={getNodeJsChangelog(release.versionWithPrefix)}
>
<LinkWithArrow href={`${BASE_CHANGELOG_URL}${release.version}`}>
{t('components.downloadReleasesTable.actions.changelog')}
</LinkWithArrow>

Expand Down
51 changes: 0 additions & 51 deletions apps/site/util/__tests__/getNodeJsChangelog.test.mjs

This file was deleted.

51 changes: 0 additions & 51 deletions apps/site/util/getNodeJsChangelog.ts

This file was deleted.

0 comments on commit 5154ad7

Please sign in to comment.