From 8aa3aeedce43b53faaab74c16a9a3294d6a460df Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Mon, 29 Jan 2024 09:27:02 +0100 Subject: [PATCH] chore: Remove unused --- app/charts/shared/chart-helpers.tsx | 36 ----------------------------- 1 file changed, 36 deletions(-) diff --git a/app/charts/shared/chart-helpers.tsx b/app/charts/shared/chart-helpers.tsx index 9676c1088..c6ae4d66e 100644 --- a/app/charts/shared/chart-helpers.tsx +++ b/app/charts/shared/chart-helpers.tsx @@ -119,42 +119,6 @@ export const useQueryFilters = ({ ]); }; -// Handle correctly when improving performance of data fetching! -// const getComponentIris = ( -// cubeIri: string, -// options: { -// dimensions: Dimension[]; -// measures: Measure[]; -// } -// ) => { -// const { dimensions, measures } = options; - -// if (dimensions.length === 0 && measures.length === 0) { -// return; -// } - -// const filteredDimensionIris: string[] = []; - -// for (const dimension of dimensions) { -// if (dimension.isJoinByDimension) { -// if (dimension.originalIris.some((d) => d.cubeIri === cubeIri)) { -// filteredDimensionIris.push( -// ...dimension.originalIris.map((d) => d.dimensionIri) -// ); -// } -// } else { -// if (dimension.cubeIri === cubeIri) { -// filteredDimensionIris.push(dimension.iri); -// } -// } -// } - -// return [ -// ...filteredDimensionIris, -// ...measures.filter((d) => d.cubeIri === cubeIri).map((d) => d.iri), -// ]; -// }; - type IFKey = keyof NonNullable; export const getChartConfigFilterComponentIris = ({ cubes }: ChartConfig) => {