Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
refactor: 使っていないselectorを消した
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpr committed Jun 12, 2020
1 parent 8b5dcb8 commit db4af3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/state/ducks/rankings/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@ const rankingUISelector = state => state.rankingsState.rankings.ui || {};

const rankingsSelector = state => state.rankingsState.rankings.data || {};

const getLimitedRanking = createSelector(rankingsSelector, rankings => rankings);

const isfetched = createSelector(rankingsSelector, rankings => rankings.upcoming !== void 0);

const getRanking = createSelector(rankingsSelector, data => Object.values(data));

const getPage = createSelector(rankingUISelector, ui => ui.page || 0);

const getTotal = createSelector(rankingUISelector, ui => ui.total || 0);

export default {
getLimitedRanking,
isfetched,
getRanking,
getPage,
getTotal,
Expand Down
3 changes: 0 additions & 3 deletions src/state/ducks/submissions/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const submissionSelector = (state, props) => state.submissionsState.submissions.

const submissionsUISelector = state => state.submissionsState.submissions.ui || {};

const isfetched = createSelector(submissionsSelector, submissions => submissions.upcoming !== void 0);

// 特定のContestのSubmission一覧を取得する
const getSubmissionList = createSelector(submissionsSelector, submissions => Object.values(submissions));

Expand Down Expand Up @@ -39,7 +37,6 @@ const getPage = createSelector(submissionsUISelector, ui => ui.page || 0);
const getTotal = createSelector(submissionsUISelector, ui => ui.total);

export default {
isfetched,
getSubmissionList,
getSubmissionBySubmitId,
getPage,
Expand Down

0 comments on commit db4af3c

Please sign in to comment.