aboutsummaryrefslogtreecommitdiff
path: root/src/background/reducers/setting.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-28 10:51:52 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-07-28 14:20:29 +0900
commitccdb0a2428bbdc56e8288442f844a4bb3b8f9a11 (patch)
treec1d653b3792917473bace600d12a071b35f6168c /src/background/reducers/setting.js
parent66c23423f931bb66c59cd29cf9279a5de5d56535 (diff)
Clean old codes
Diffstat (limited to 'src/background/reducers/setting.js')
-rw-r--r--src/background/reducers/setting.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/background/reducers/setting.js b/src/background/reducers/setting.js
deleted file mode 100644
index 8dbc1b4..0000000
--- a/src/background/reducers/setting.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import actions from 'background/actions';
-
-const defaultState = {
- value: {},
-};
-
-export default function reducer(state = defaultState, action = {}) {
- switch (action.type) {
- case actions.SETTING_SET_SETTINGS:
- return {
- value: action.value,
- };
- case actions.SETTING_SET_PROPERTY:
- return {
- value: { ...state.value,
- properties: { ...state.value.properties, [action.name]: action.value }}
- };
- default:
- return state;
- }
-}
-