Skip to content

Commit

Permalink
[core] Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 18, 2021
1 parent 7fd5c66 commit 382439d
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -252,12 +252,6 @@ export const useGridSorting = (apiRef: GridApiRef, { rows }: { rows: GridRowsPro
[sortColumn],
);

const onRowsCleared = React.useCallback(() => {
setGridState((state) => {
return { ...state, sorting: { ...state.sorting, sortedRows: [] } };
});
}, [setGridState]);

const getSortModel = React.useCallback(
() => gridState.sorting.sortModel,
[gridState.sorting.sortModel],
Expand Down Expand Up @@ -296,7 +290,6 @@ export const useGridSorting = (apiRef: GridApiRef, { rows }: { rows: GridRowsPro
useGridApiEventHandler(apiRef, GRID_COLUMN_HEADER_CLICK, handleColumnHeaderClick);
useGridApiEventHandler(apiRef, GRID_COLUMN_HEADER_KEYDOWN, handleColumnHeaderKeyDown);
useGridApiEventHandler(apiRef, GRID_ROWS_SET, apiRef.current.applySorting);
useGridApiEventHandler(apiRef, GRID_ROWS_CLEARED, onRowsCleared);
useGridApiEventHandler(apiRef, GRID_ROWS_UPDATED, apiRef.current.applySorting);
useGridApiEventHandler(apiRef, GRID_COLUMNS_UPDATED, onColUpdated);

Expand Down

0 comments on commit 382439d

Please sign in to comment.