From a07fbb6477325badee228aec03d469e94cb5b0cd Mon Sep 17 00:00:00 2001 From: regexowl Date: Wed, 23 Apr 2025 12:58:04 +0200 Subject: [PATCH] store: Remove unused selectors This removes selectors that are no longer used. --- src/store/wizardSlice.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/store/wizardSlice.ts b/src/store/wizardSlice.ts index f43704e7..a3ae5d1a 100644 --- a/src/store/wizardSlice.ts +++ b/src/store/wizardSlice.ts @@ -414,31 +414,6 @@ export const selectUsers = (state: RootState) => { return state.wizard.users; }; -export const selectUserNameByIndex = - (userIndex: number) => (state: RootState) => { - return state.wizard.users[userIndex]?.name; - }; - -export const selectUserPasswordByIndex = - (userIndex: number) => (state: RootState) => { - return state.wizard.users[userIndex]?.password; - }; - -export const selectUserSshKeyByIndex = - (userIndex: number) => (state: RootState) => { - return state.wizard.users[userIndex]?.ssh_key; - }; - -export const selectUserAdministrator = - (userIndex: number) => (state: RootState) => { - return state.wizard.users[userIndex]?.isAdministrator; - }; - -export const selectUserGroupsByIndex = - (userIndex: number) => (state: RootState) => { - return state.wizard.users[userIndex]?.groups; - }; - export const selectKernel = (state: RootState) => { return state.wizard.kernel; };