From bdc49691f05156537e1ee92ab5540137c16d343a Mon Sep 17 00:00:00 2001 From: Liam Cardenas Date: Mon, 22 Jan 2018 14:06:07 -0800 Subject: [PATCH] Remove unused reducers and action types --- src/renderer/constants/action_types.js | 2 -- src/renderer/redux/reducers/user.js | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/renderer/constants/action_types.js b/src/renderer/constants/action_types.js index 6e0f40344..a72669b55 100644 --- a/src/renderer/constants/action_types.js +++ b/src/renderer/constants/action_types.js @@ -108,10 +108,8 @@ export const USER_EMAIL_NEW_FAILURE = 'USER_EMAIL_NEW_FAILURE'; export const USER_EMAIL_VERIFY_STARTED = 'USER_EMAIL_VERIFY_STARTED'; export const USER_EMAIL_VERIFY_SUCCESS = 'USER_EMAIL_VERIFY_SUCCESS'; export const USER_EMAIL_VERIFY_FAILURE = 'USER_EMAIL_VERIFY_FAILURE'; -export const USER_PHONE_DECLINE = 'USER_PHONE_DECLINE'; export const USER_PHONE_NEW_STARTED = 'USER_PHONE_NEW_STARTED'; export const USER_PHONE_NEW_SUCCESS = 'USER_PHONE_NEW_SUCCESS'; -export const USER_PHONE_NEW_EXISTS = 'USER_PHONE_NEW_EXISTS'; export const USER_PHONE_NEW_FAILURE = 'USER_PHONE_NEW_FAILURE'; export const USER_PHONE_VERIFY_STARTED = 'USER_PHONE_VERIFY_STARTED'; export const USER_PHONE_VERIFY_SUCCESS = 'USER_PHONE_VERIFY_SUCCESS'; diff --git a/src/renderer/redux/reducers/user.js b/src/renderer/redux/reducers/user.js index 3d2ea165c..c74428896 100644 --- a/src/renderer/redux/reducers/user.js +++ b/src/renderer/redux/reducers/user.js @@ -71,12 +71,6 @@ reducers[ACTIONS.USER_PHONE_NEW_SUCCESS] = (state, action) => phoneNewIsPending: false, }); -reducers[ACTIONS.USER_PHONE_NEW_EXISTS] = (state, action) => - Object.assign({}, state, { - phoneToVerify: action.data.phone, - phoneNewIsPending: false, - }); - reducers[ACTIONS.USER_PHONE_NEW_FAILURE] = (state, action) => Object.assign({}, state, { phoneNewIsPending: false,