Skip to content

Commit ea9cc35

Browse files
committed
remove unneeded PAGE_POSITION_SET
1 parent 693b36f commit ea9cc35

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

src/actions/_types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const COMPLETE_TUTORIAL = 'COMPLETE_TUTORIAL';
55
export const DEVTOOLS_TOGGLE = 'DEVTOOLS_TOGGLE';
66
export const HINT_POSITION_SET = 'HINT_POSITION_SET';
77
export const PAGE_SET = 'PAGE_SET';
8-
export const PAGE_POSITION_SET = 'POSITION_SET';
98
export const PROGRESS_LOAD = 'PROGRESS_LOAD';
109
export const PROGRESS_PAGE_POSITION_LOAD = 'PROGRESS_PAGE_POSITION_LOAD';
1110
export const QUIT = 'QUIT';

src/actions/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export {
55
progressPagePositionLoad
66
} from './progress';
77
export {hintPositionSet} from './hint';
8-
export {pageSet, pageNext, pagePositionSet} from './page';
8+
export {pageSet, pageNext} from './page';
99
export {routeSet} from './route';
1010
export {setupVerify, setupPackage} from './setup';
1111
export {

src/actions/page.ts

-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@ export function pageSet(pagePosition = 0): ReduxThunk.ThunkInterface {
3030
dispatch(hintPositionSet(0));
3131
};
3232
}
33-
34-
export function pagePositionSet(pagePosition: CR.PagePosition): Action {
35-
return { type: PAGE_POSITION_SET, payload: { pagePosition } };
36-
}

src/reducers/page-position/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default function pagePositionReducer(
1212
const firstFail = pages.indexOf(false);
1313
return firstFail < 0 ? pages.length - 1 : firstFail;
1414

15-
case PAGE_SET:
1615
case PAGE_POSITION_SET:
1716
return action.payload.pagePosition;
1817

0 commit comments

Comments
 (0)