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 types from "constants/action_types";
|
||||||
import * as modals from "constants/modal_types";
|
import * as modals from "constants/modal_types";
|
||||||
import lbryio from "lbryio";
|
import lbryio from "lbryio";
|
||||||
import { setLocal } from "utils";
|
|
||||||
import { doOpenModal } from "actions/app";
|
import { doOpenModal } from "actions/app";
|
||||||
import { doRewardList, doClaimRewardType } from "actions/rewards";
|
import { doRewardList, doClaimRewardType } from "actions/rewards";
|
||||||
import { selectEmailToVerify, selectUser } from "selectors/user";
|
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) {
|
export function doUserEmailVerify(verificationToken) {
|
||||||
return function(dispatch, getState) {
|
return function(dispatch, getState) {
|
||||||
const email = selectEmailToVerify(getState());
|
const email = selectEmailToVerify(getState());
|
||||||
|
|
|
@ -8,7 +8,6 @@ const defaultState = {
|
||||||
userIsPending: false,
|
userIsPending: false,
|
||||||
emailNewIsPending: false,
|
emailNewIsPending: false,
|
||||||
emailNewErrorMessage: "",
|
emailNewErrorMessage: "",
|
||||||
emailNewDeclined: getLocal("user_email_declined", false),
|
|
||||||
emailToVerify: "",
|
emailToVerify: "",
|
||||||
user: undefined,
|
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) {
|
reducers[types.USER_EMAIL_NEW_STARTED] = function(state, action) {
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
emailNewIsPending: true,
|
emailNewIsPending: true,
|
||||||
|
|
|
@ -39,11 +39,6 @@ export const selectEmailNewErrorMessage = createSelector(
|
||||||
state => state.emailNewErrorMessage
|
state => state.emailNewErrorMessage
|
||||||
);
|
);
|
||||||
|
|
||||||
export const selectEmailNewDeclined = createSelector(
|
|
||||||
_selectState,
|
|
||||||
state => state.emailNewDeclined
|
|
||||||
);
|
|
||||||
|
|
||||||
export const selectEmailVerifyIsPending = createSelector(
|
export const selectEmailVerifyIsPending = createSelector(
|
||||||
_selectState,
|
_selectState,
|
||||||
state => state.emailVerifyIsPending
|
state => state.emailVerifyIsPending
|
||||||
|
|
Loading…
Add table
Reference in a new issue