remove unused code

This commit is contained in:
Jeremy Kauffman 2017-08-25 16:04:05 -04:00
parent 0c1b36e1a6
commit cb70fdb4b3
3 changed files with 0 additions and 22 deletions

View file

@ -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());

View file

@ -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,

View file

@ -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