remove unused code
This commit is contained in:
parent
0c1b36e1a6
commit
cb70fdb4b3
3 changed files with 0 additions and 22 deletions
|
@ -1,7 +1,6 @@
|
|||
import * as types from "constants/action_types";
|
||||
import * as modals from "constants/modal_types";
|
||||
import lbryio from "lbryio";
|
||||
import { setLocal } from "utils";
|
||||
import { doOpenModal } from "actions/app";
|
||||
import { doRewardList, doClaimRewardType } from "actions/rewards";
|
||||
import { selectEmailToVerify, selectUser } from "selectors/user";
|
||||
|
@ -95,15 +94,6 @@ export function doUserEmailNew(email) {
|
|||
};
|
||||
}
|
||||
|
||||
export function doUserEmailDecline() {
|
||||
return function(dispatch, getState) {
|
||||
setLocal("user_email_declined", true);
|
||||
dispatch({
|
||||
type: types.USER_EMAIL_DECLINE,
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export function doUserEmailVerify(verificationToken) {
|
||||
return function(dispatch, getState) {
|
||||
const email = selectEmailToVerify(getState());
|
||||
|
|
|
@ -8,7 +8,6 @@ const defaultState = {
|
|||
userIsPending: false,
|
||||
emailNewIsPending: false,
|
||||
emailNewErrorMessage: "",
|
||||
emailNewDeclined: getLocal("user_email_declined", false),
|
||||
emailToVerify: "",
|
||||
user: undefined,
|
||||
};
|
||||
|
@ -58,12 +57,6 @@ reducers[types.USER_FETCH_FAILURE] = function(state, action) {
|
|||
});
|
||||
};
|
||||
|
||||
reducers[types.USER_EMAIL_DECLINE] = function(state, action) {
|
||||
return Object.assign({}, state, {
|
||||
emailNewDeclined: true,
|
||||
});
|
||||
};
|
||||
|
||||
reducers[types.USER_EMAIL_NEW_STARTED] = function(state, action) {
|
||||
return Object.assign({}, state, {
|
||||
emailNewIsPending: true,
|
||||
|
|
|
@ -39,11 +39,6 @@ export const selectEmailNewErrorMessage = createSelector(
|
|||
state => state.emailNewErrorMessage
|
||||
);
|
||||
|
||||
export const selectEmailNewDeclined = createSelector(
|
||||
_selectState,
|
||||
state => state.emailNewDeclined
|
||||
);
|
||||
|
||||
export const selectEmailVerifyIsPending = createSelector(
|
||||
_selectState,
|
||||
state => state.emailVerifyIsPending
|
||||
|
|
Loading…
Reference in a new issue