diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-11 16:38:08 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-11 16:38:08 +0900 |
commit | c6288f19d93a05f96274dd172450b8350389c39f (patch) | |
tree | 75b5a168af535aa640bc21e70281497915dade63 /src/content/reducers/mark.ts | |
parent | ebfb172520f7077a15cd5d4e865e5d86593c55ac (diff) |
Mark set/jump as a clean architecture
Diffstat (limited to 'src/content/reducers/mark.ts')
-rw-r--r-- | src/content/reducers/mark.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/content/reducers/mark.ts b/src/content/reducers/mark.ts index 7409938..a8f2f1b 100644 --- a/src/content/reducers/mark.ts +++ b/src/content/reducers/mark.ts @@ -1,16 +1,13 @@ -import Mark from '../Mark'; import * as actions from '../actions'; export interface State { setMode: boolean; jumpMode: boolean; - marks: { [key: string]: Mark }; } const defaultState: State = { setMode: false, jumpMode: false, - marks: {}, }; export default function reducer( @@ -24,11 +21,6 @@ export default function reducer( return { ...state, jumpMode: true }; case actions.MARK_CANCEL: return { ...state, setMode: false, jumpMode: false }; - case actions.MARK_SET_LOCAL: { - let marks = { ...state.marks }; - marks[action.key] = { x: action.x, y: action.y }; - return { ...state, setMode: false, marks }; - } default: return state; } |