Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoedl committed Dec 16, 2024
1 parent e39a284 commit 8daa4e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function CountryComparisonAccordion({
setSelectedCountries((prevCountries) =>
prevCountries?.filter((country) => country.properties.adm0_id !== invalidCountryId)
);
// CountryComparisonOperations.updateIdQueryParams(searchParams, countryId, router, pathname);
}
);

Expand Down
11 changes: 0 additions & 11 deletions src/operations/comparison-portal/CountryComparisonOperations.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Spacer } from '@nextui-org/react';
import { UseQueryResult } from '@tanstack/react-query';
import { AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import { ReadonlyURLSearchParams } from 'next/navigation';

import { CategoricalChart } from '@/components/Charts/CategoricalChart';
Expand Down Expand Up @@ -31,16 +30,6 @@ export class CountryComparisonOperations {
return newCountryIds.join(',');
}

static updateIdQueryParams(
searchParams: ReadonlyURLSearchParams,
countryId: number,
router: AppRouterInstance,
pathname: string
): void {
const newCountryIdQueryParams = this.removeCountryFromUrl(searchParams, countryId);
router.push(`${pathname}?countries=${newCountryIdQueryParams}`);
}

static getFcsChartData(countryDataList: CountryDataRecord[], countryMapData: CountryMapData[]): LineChartData {
return this.chartWithoutEmptyLines({
type: LineChartDataType.LINE_CHART_DATA,
Expand Down

0 comments on commit 8daa4e4

Please sign in to comment.