From aba3fd454b5e43baed1b3b8a94560c1686ad39f4 Mon Sep 17 00:00:00 2001 From: Lucas Bordeau Date: Fri, 3 Nov 2023 17:08:07 +0100 Subject: [PATCH] Removed dead code (#2345) --- .../states/tableCellInitialValueFamilyState.ts | 12 ------------ .../hooks/useCurrentTableCellInitialValue.ts | 17 ----------------- 2 files changed, 29 deletions(-) delete mode 100644 front/src/modules/ui/object/record-table/states/tableCellInitialValueFamilyState.ts delete mode 100644 front/src/modules/ui/object/record-table/table-cell/hooks/useCurrentTableCellInitialValue.ts diff --git a/front/src/modules/ui/object/record-table/states/tableCellInitialValueFamilyState.ts b/front/src/modules/ui/object/record-table/states/tableCellInitialValueFamilyState.ts deleted file mode 100644 index cd3375481..000000000 --- a/front/src/modules/ui/object/record-table/states/tableCellInitialValueFamilyState.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { atomFamily } from 'recoil'; - -import { TableCellInitialValue } from '../types/TableCellInitialValue'; -import { TableCellPosition } from '../types/TableCellPosition'; - -export const tableCellInitialValueFamilyState = atomFamily< - TableCellInitialValue | undefined, - TableCellPosition ->({ - key: 'tableCellInitialValueFamilyState', - default: undefined, -}); diff --git a/front/src/modules/ui/object/record-table/table-cell/hooks/useCurrentTableCellInitialValue.ts b/front/src/modules/ui/object/record-table/table-cell/hooks/useCurrentTableCellInitialValue.ts deleted file mode 100644 index 3b48c0fe1..000000000 --- a/front/src/modules/ui/object/record-table/table-cell/hooks/useCurrentTableCellInitialValue.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { useRecoilState } from 'recoil'; - -import { tableCellInitialValueFamilyState } from '../../states/tableCellInitialValueFamilyState'; - -import { useCurrentTableCellPosition } from './useCurrentCellPosition'; - -export const useCurrentTableCellInitialValue = () => { - const currentTableCellPosition = useCurrentTableCellPosition(); - - const [currentTableCellInitialValue, setCurrentTableCellInitialValue] = - useRecoilState(tableCellInitialValueFamilyState(currentTableCellPosition)); - - return { - currentTableCellInitialValue, - setCurrentTableCellInitialValue, - }; -};